Skip to content

Commit 34d8cce

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 1e13293 commit 34d8cce

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

package.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,15 @@
2525
"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",
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)