Skip to content

Commit 1716b4f

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 ea6536b commit 1716b4f

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

package.json

+4-11
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"bugs": "https://github.com/xjamundx/eslint-plugin-promise/issues",
1919
"scripts": {
2020
"format": "prettier --write .",
21-
"lint": "eslint .",
21+
"lint": "eslint . && prettier -c .",
2222
"prepare": "husky install",
2323
"test": "jest --coverage"
2424
},
@@ -45,16 +45,9 @@
4545
},
4646
"license": "ISC",
4747
"lint-staged": {
48-
"{README.md,CONTRIBUTING.md}": [
49-
"doctoc --maxlevel 3 --notitle"
50-
],
51-
"*.js": [
52-
"prettier --write",
53-
"eslint --fix"
54-
],
55-
"*.+(json|md)": [
56-
"prettier --write"
57-
]
48+
"{README.md,CONTRIBUTING.md}": "doctoc --maxlevel 3 --notitle",
49+
"*.js": "eslint --fix",
50+
"*": "prettier --write --ignore-unknown"
5851
},
5952
"prettier": {
6053
"semi": false,

0 commit comments

Comments
 (0)