Skip to content

Commit 048b86d

Browse files
committed
chore: prettier all files with lint-staged
Run for all files in lint-staged, and check on CI through `lint`
1 parent 1376ecf commit 048b86d

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

package.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,18 @@
2222
"Aadit M Shah <[email protected]> (https://aadit.codes/)"
2323
],
2424
"scripts": {
25-
"format": "prettier --write . && npm run lint -- --fix",
25+
"format": "prettier --write . && eslint . --fix",
2626
"lint": "npm-run-all \"lint:*\"",
2727
"lint:eslint-docs": "npm run update:eslint-docs && git diff --exit-code",
28-
"lint:js": "eslint --report-unused-disable-directives .",
28+
"lint:js": "eslint --report-unused-disable-directives . && prettier --check .",
2929
"prepare": "husky install",
3030
"test": "jest --coverage",
3131
"update:eslint-docs": "eslint-doc-generator && npm run format"
3232
},
3333
"lint-staged": {
34-
"{README.md,CONTRIBUTING.md}": [
35-
"doctoc --maxlevel 3 --notitle"
36-
],
37-
"*.js": [
38-
"prettier --write",
39-
"eslint --report-unused-disable-directives --fix"
40-
],
41-
"*.+(json|md)": [
42-
"prettier --write"
43-
]
34+
"*": "prettier --write --ignore-unknown",
35+
"{README.md,CONTRIBUTING.md}": "doctoc --maxlevel 3 --notitle",
36+
"*.js": "eslint --report-unused-disable-directives --fix"
4437
},
4538
"prettier": {
4639
"proseWrap": "always",

0 commit comments

Comments
 (0)