Skip to content

Commit

Permalink
chore: add lint-staged precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
tednaaa committed Jun 24, 2023
1 parent e43be61 commit 329ab9e
Show file tree
Hide file tree
Showing 4 changed files with 543 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
],
"extends": [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:jest/recommended",
"plugin:jest-dom/recommended",
"plugin:testing-library/react"
"plugin:testing-library/react",
"prettier"
],
"rules": {
"indent": ["error", 2],
Expand Down
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"

npx lint-staged
Loading

0 comments on commit 329ab9e

Please sign in to comment.