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 048b86d
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,18 @@
"Aadit M Shah <[email protected]> (https://aadit.codes/)"
],
"scripts": {
"format": "prettier --write . && npm run lint -- --fix",
"format": "prettier --write . && eslint . --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 048b86d

Please sign in to comment.