Skip to content

Commit b3059d5

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 91345d9 commit b3059d5

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
@@ -22,7 +22,7 @@
2222
"bugs": "https://github.com/eslint-community/eslint-plugin-promise/issues",
2323
"scripts": {
2424
"format": "prettier --write .",
25-
"lint": "eslint --report-unused-disable-directives .",
25+
"lint": "eslint --report-unused-disable-directives . && prettier -c .",
2626
"prepare": "husky install",
2727
"test": "jest --coverage"
2828
},
@@ -50,16 +50,9 @@
5050
},
5151
"license": "ISC",
5252
"lint-staged": {
53-
"{README.md,CONTRIBUTING.md}": [
54-
"doctoc --maxlevel 3 --notitle"
55-
],
56-
"*.js": [
57-
"prettier --write",
58-
"eslint --report-unused-disable-directives --fix"
59-
],
60-
"*.+(json|md)": [
61-
"prettier --write"
62-
]
53+
"*": "prettier --write --ignore-unknown",
54+
"{README.md,CONTRIBUTING.md}": "doctoc --maxlevel 3 --notitle",
55+
"*.js": "eslint --report-unused-disable-directives --fix"
6356
},
6457
"prettier": {
6558
"semi": false,

0 commit comments

Comments
 (0)