Skip to content

Commit

Permalink
Adding husky for yarn lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RONAK-AI647 committed Dec 28, 2024
1 parent b5ee9d3 commit 5fb6934
Show file tree
Hide file tree
Showing 3 changed files with 276 additions and 5 deletions.
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"

yarn lint-staged
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@
"precompile-svgs": "node utils/precompileSvgs/index.js && yarn run pregenerate",
"precompile-custom-svgs": "node utils/precompileSvgs/index.js --custom && yarn run pregenerate",
"test": "jest --config=jest.conf/index.js",
"_api-watch": "chokidar \"**/lib/**\" -c \"node utils/extractApi.js\""
"_api-watch": "chokidar \"**/lib/**\" -c \"node utils/extractApi.js\"",
"prepare": "husky install"

},
"files": [
"lib"
],
"lint-staged": {
"*.{js,vue}": "yarn lint-fix"
},
"dependencies": {
"aphrodite": "https://github.com/learningequality/aphrodite/",
"autosize": "3.0.21",
Expand Down Expand Up @@ -57,10 +62,12 @@
"consola": "^2.15.3",
"eslint-import-resolver-nuxt": "^1.0.1",
"globby": "^6.1.0",
"husky": "^8.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-serializer-vue": "^3.1.0",
"kolibri-format": "^1.0.0",
"lint-staged": "^15.2.11",
"lockr": "^0.8.4",
"material-design-icons": "^3.0.1",
"mock-match-media": "^0.4.3",
Expand Down
Loading

0 comments on commit 5fb6934

Please sign in to comment.