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 Dec 18, 2021
1 parent ea6536b commit 1716b4f
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions package.json
Expand Up @@ -18,7 +18,7 @@
"bugs": "https://github.com/xjamundx/eslint-plugin-promise/issues",
"scripts": {
"format": "prettier --write .",
"lint": "eslint .",
"lint": "eslint . && prettier -c .",
"prepare": "husky install",
"test": "jest --coverage"
},
Expand All @@ -45,16 +45,9 @@
},
"license": "ISC",
"lint-staged": {
"{README.md,CONTRIBUTING.md}": [
"doctoc --maxlevel 3 --notitle"
],
"*.js": [
"prettier --write",
"eslint --fix"
],
"*.+(json|md)": [
"prettier --write"
]
"{README.md,CONTRIBUTING.md}": "doctoc --maxlevel 3 --notitle",
"*.js": "eslint --fix",
"*": "prettier --write --ignore-unknown"
},
"prettier": {
"semi": false,
Expand Down

0 comments on commit 1716b4f

Please sign in to comment.