Skip to content

Commit

Permalink
feat: lint and pre-commit hook with Husky and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sembauke committed Apr 8, 2024
1 parent 1fe2aea commit 7de03f1
Show file tree
Hide file tree
Showing 4 changed files with 412 additions and 22 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
1 change: 1 addition & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "*.ts": "eslint" }
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"storybook:theming": "pnpm run storybook --no-manager-cache",
"clean": "rm -rf dist/*",
"gen-component": "ts-node ./utils/gen-component-script",
"test": "jest"
"test": "jest",
"prepare": "husky"
},
"dependencies": {
"@fortawesome/free-solid-svg-icons": "6.4.2",
Expand Down Expand Up @@ -82,16 +83,18 @@
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"cross-env": "7.0.3",
"css-loader": "6.8.1",
"eslint": "^9.0.0",
"husky": "^9.0.11",
"jest": "29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.2",
"npm-run-all2": "5.0.2",
"postcss": "8.4.35",
"postcss-import": "14.1.0",
"postcss-loader": "8.1.0",
"prettier": "3.2.5",
"rollup": "2.79.1",
"rollup-plugin-postcss": "4.0.2",
"@rollup/plugin-terser": "0.4.4",
"storybook": "^8.0.5",
"style-loader": "3.3.3",
"tailwindcss": "3.4.1",
Expand Down
Loading

0 comments on commit 7de03f1

Please sign in to comment.