Skip to content

Commit

Permalink
feat: add eslint pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo committed Sep 13, 2023
1 parent 1fda4f1 commit 65e5b6f
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 1 deletion.
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"

pnpm lint-staged
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
"build-storybook": "nx build-storybook shared-storybook --verbose",
"storybook": "nx storybook shared-storybook",
"oeth": "pnpm nx serve oeth",
"ousd": "pnpm nx serve ousd"
"ousd": "pnpm nx serve ousd",
"prepare": "husky install"
},
"private": true,
"lint-staged": {
"*.{js,jsx,ts,tsx,mdx}": "eslint --cache --fix"
},
"dependencies": {
"@curvefi/api": "^2.46.1",
"@emotion/react": "^11.11.1",
Expand Down Expand Up @@ -85,7 +89,9 @@
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^3.0.0",
"fs-extra": "^11.1.1",
"husky": "^8.0.0",
"jsdom": "~22.1.0",
"lint-staged": "^14.0.1",
"nx": "16.6.0",
"prettier": "^3.0.1",
"storybook-addon-pseudo-states": "^2.1.0",
Expand Down
138 changes: 138 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 65e5b6f

Please sign in to comment.