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 Jul 19, 2024
1 parent 1376ecf commit c059ac8
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,15 @@
"format": "prettier --write . && npm run lint -- --fix",
"lint": "npm-run-all \"lint:*\"",
"lint:eslint-docs": "npm run update:eslint-docs && git diff --exit-code",
"lint:js": "eslint --report-unused-disable-directives .",
"lint:js": "eslint --report-unused-disable-directives . && prettier --check .",
"prepare": "husky install",
"test": "jest --coverage",
"update:eslint-docs": "eslint-doc-generator && npm run format"
},
"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": {
"proseWrap": "always",
Expand Down

0 comments on commit c059ac8

Please sign in to comment.