Skip to content

Commit

Permalink
chore: add husky and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman committed Nov 29, 2023
1 parent d0178e7 commit edeacfa
Show file tree
Hide file tree
Showing 4 changed files with 2,187 additions and 3,117 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn nx format:check
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,21 @@
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-react-hooks": "4.6.0",
"husky": "^8.0.3",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"lint-staged": "^15.1.0",
"nx": "17.1.3",
"prettier": "^2.6.2",
"react-refresh": "^0.10.0",
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"typescript": "~5.2.2",
"url-loader": "^4.1.1"
},
"lint-staged": {
"*.{js,json,css,scss,md,ts,tsx,html,graphql}": [
"yarn nx format --uncommitted"
]
}
}
Loading

0 comments on commit edeacfa

Please sign in to comment.