Skip to content

Commit

Permalink
Add lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
robertherber committed Jul 24, 2023
1 parent 0dc979b commit 45a5f8e
Show file tree
Hide file tree
Showing 4 changed files with 2,484 additions and 1,824 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
.DS_Store
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
"prepublishOnly": "pnpm test",
"prepare": "husky install"
},
"lint-staged": {
"*.ts": "eslint --fix",
"*.js": "eslint --fix",
"*.json": "eslint --fix",
"*.graphql": "eslint --fix",
"*.yml": "eslint --fix"
},
"packageManager": "[email protected]",
"keywords": [
"eslint",
Expand Down Expand Up @@ -90,6 +97,7 @@
"graphql": "^16.5.0",
"husky": "8",
"jest": "*",
"lint-staged": "^13.2.3",
"react": "*",
"typescript": "^4.1.2"
}
Expand Down
Loading

0 comments on commit 45a5f8e

Please sign in to comment.