Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding husky for yarn lint-fix #880

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading