Skip to content

Commit

Permalink
feat: add linting only staged files script
Browse files Browse the repository at this point in the history
  • Loading branch information
TomatoVan committed Mar 24, 2024
1 parent 3d2de35 commit 84824d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
#npm run storybook:build
#npm run test:ui

#for linting only staged files
#npx lint-staged а
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"generate:slice": "node ./scripts/createSlice/index.js",
"postinstall": "node ./scripts/clear-cache.js"
},
"lint-staged": {
"**/*.{ts,tsx}": "eslint"
},
"keywords": [],
"author": "",
"license": "ISC",
Expand Down Expand Up @@ -106,7 +109,8 @@
"vite": "^3.1.0",
"vite-plugin-svgr": "^2.2.1",
"eslint-plugin-unused-imports": "^2.0.0",
"storybook-addon-themes": "^6.1.0"
"storybook-addon-themes": "^6.1.0",
"lint-staged": "^13.0.3"
},
"dependencies": {
"@reduxjs/toolkit": "^1.8.0",
Expand Down

0 comments on commit 84824d1

Please sign in to comment.