Skip to content

Commit 021be92

Browse files
authored
Separated formatting and linting (#105)
* chore: Separated formatting and linting * chore: Added lockfile
1 parent 077a8cf commit 021be92

File tree

5 files changed

+211
-225
lines changed

5 files changed

+211
-225
lines changed

.prettierignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# compiled output
2+
/dist/
3+
/dist-for-testing/
4+
/tmp/
5+
6+
# misc
7+
/src/blueprints/
8+
/tests/fixtures/
9+
!.*
10+
.*/
11+
CONTRIBUTING.md
12+
README.md
13+
pnpm-lock.yaml
14+
15+
# specific to this package

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ Here are some guidelines to help you and everyone else.
3434

3535
<details>
3636

37-
<summary>Lint files</summary>
37+
<summary>Check and fix errors</summary>
3838

39-
1. When you write code, please check that it meets the linting rules.
39+
1. As you write code, please check that it meets formatting and linting rules.
4040

4141
```sh
4242
pnpm lint
4343
```
4444

45-
1. You can run `lint:fix` to automatically fix linting errors.
45+
1. You can run `lint:fix` to fix errors.
4646

4747
```sh
4848
pnpm lint:fix

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
],
2929
"scripts": {
3030
"build": "./build.sh --production",
31+
"format": "prettier . --cache --write",
3132
"lint": "concurrently \"pnpm:lint:*(!fix)\" --names \"lint:\"",
32-
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\"",
33+
"lint:fix": "concurrently \"pnpm:lint:*:fix\" --names \"fix:\" && pnpm format",
34+
"lint:format": "prettier . --cache --check",
3335
"lint:js": "eslint . --cache",
3436
"lint:js:fix": "eslint . --fix",
3537
"lint:types": "tsc --noEmit",
@@ -49,15 +51,15 @@
4951
"@changesets/cli": "^2.29.4",
5052
"@changesets/get-github-info": "^0.6.0",
5153
"@codemod-utils/tests": "^2.0.1",
52-
"@ijlee2-frontend-configs/eslint-config-node": "^1.2.0",
53-
"@ijlee2-frontend-configs/prettier": "^1.0.0",
54+
"@ijlee2-frontend-configs/eslint-config-node": "^2.0.0",
55+
"@ijlee2-frontend-configs/prettier": "^2.0.0",
5456
"@sondr3/minitest": "^0.1.2",
5557
"@tsconfig/node20": "^20.1.5",
5658
"@tsconfig/strictest": "^2.0.5",
57-
"@types/node": "^20.17.54",
59+
"@types/node": "^20.17.57",
5860
"@types/yargs": "^17.0.33",
5961
"concurrently": "^9.1.2",
60-
"eslint": "^9.27.0",
62+
"eslint": "^9.28.0",
6163
"prettier": "^3.5.3",
6264
"typescript": "^5.8.3"
6365
},

0 commit comments

Comments
 (0)