Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix(build): modify husky and lint-staged config to fix lint issue
Browse files Browse the repository at this point in the history
fix #1775
  • Loading branch information
ocBruno committed Feb 2, 2020
1 parent 6589ddb commit 66076e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
Expand All @@ -129,10 +130,9 @@
}
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": [
"npm run lint",
"npm run test:ci",
"git add ."
]
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"*.js": "eslint --cache --fix"
}
}

0 comments on commit 66076e6

Please sign in to comment.