Skip to content

Commit

Permalink
chore: prettier all files with lint-staged
Browse files Browse the repository at this point in the history
Run for all files in lint-staged, and check on CI through `lint`
  • Loading branch information
nschonni committed Sep 29, 2022
1 parent 91345d9 commit b3059d5
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions package.json
Expand Up @@ -22,7 +22,7 @@
"bugs": "https://github.com/eslint-community/eslint-plugin-promise/issues",
"scripts": {
"format": "prettier --write .",
"lint": "eslint --report-unused-disable-directives .",
"lint": "eslint --report-unused-disable-directives . && prettier -c .",
"prepare": "husky install",
"test": "jest --coverage"
},
Expand Down Expand Up @@ -50,16 +50,9 @@
},
"license": "ISC",
"lint-staged": {
"{README.md,CONTRIBUTING.md}": [
"doctoc --maxlevel 3 --notitle"
],
"*.js": [
"prettier --write",
"eslint --report-unused-disable-directives --fix"
],
"*.+(json|md)": [
"prettier --write"
]
"*": "prettier --write --ignore-unknown",
"{README.md,CONTRIBUTING.md}": "doctoc --maxlevel 3 --notitle",
"*.js": "eslint --report-unused-disable-directives --fix"
},
"prettier": {
"semi": false,
Expand Down

0 comments on commit b3059d5

Please sign in to comment.