Skip to content

Commit ea0c38f

Browse files
committed
feat: apply prettier
1 parent a50cb6d commit ea0c38f

File tree

11 files changed

+201
-160
lines changed

11 files changed

+201
-160
lines changed

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
- uses: actions/setup-node@v4
2020
with:
2121
cache: pnpm
22-
node-version: '20.x'
23-
registry-url: 'https://registry.npmjs.org'
22+
node-version: "20.x"
23+
registry-url: "https://registry.npmjs.org"
2424
- name: publish
2525
run: |
2626
pnpm install

.github/workflows/test.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
- uses: actions/setup-node@v4
1919
with:
2020
cache: pnpm
21-
node-version: '20.x'
22-
registry-url: 'https://registry.npmjs.org'
21+
node-version: "20.x"
22+
registry-url: "https://registry.npmjs.org"
2323
- name: build
2424
run: |
2525
pnpm install
26-
pnpm vitest run
26+
pnpm lint
27+
pnpm fmt --check
2728
pnpm -r build

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/__snapshots__

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@
1010
"pnpm": ">= 9"
1111
},
1212
"scripts": {
13-
"lint": "eslint --flag unstable_ts_config"
13+
"lint": "eslint --flag unstable_ts_config",
14+
"fmt": "prettier .github packages"
1415
},
1516
"devDependencies": {
1617
"@babel/preset-typescript": "7.26.0",
1718
"@changesets/cli": "2.27.9",
1819
"@types/node": "22.9.0",
1920
"eslint": "9.11.1",
2021
"jiti": "2.4.0",
22+
"prettier": "3.3.3",
2123
"typescript": "5.6.3",
2224
"vitest": "2.1.4"
2325
},

packages/eslint-config/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,27 @@
88
eslint.config.mjs
99

1010
```js
11-
import pixiv from '@pixiv/eslint-config';
11+
import pixiv from "@pixiv/eslint-config";
1212

1313
export default pixiv.configs.recommended;
1414
```
1515

1616
また
1717

1818
```js
19-
import pixiv from '@pixiv/eslint-config';
19+
import pixiv from "@pixiv/eslint-config";
2020

2121
export default [
2222
{
23-
ignores: ['tmp', 'vendor', 'public/packs'],
23+
ignores: ["tmp", "vendor", "public/packs"],
2424
},
2525
...pixiv.configs.recommended,
2626
{
2727
rules: {
28-
'react/self-closing-comp': 'warn',
29-
'import/first': 'warn',
30-
'object-shorthand': 'warn',
31-
curly: 'off',
28+
"react/self-closing-comp": "warn",
29+
"import/first": "warn",
30+
"object-shorthand": "warn",
31+
curly: "off",
3232
},
3333
},
3434
];
@@ -47,4 +47,4 @@ export default [
4747
## Known issues
4848

4949
- This package contains many deps that might not be used
50-
- In some condition it's required to set `public-hoist-pattern[]=eslint-*` in .npmrc
50+
- In some condition it's required to set `public-hoist-pattern[]=eslint-*` in .npmrc

packages/eslint-config/pnpm-lock.yaml

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)