File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ module.exports = class extends Generator {
8585 'eslint-plugin-promise' ,
8686 'eslint-plugin-standard' ,
8787 'husky' ,
88+ 'lint-staged'
8889 ]
8990 const packages = [ ]
9091
Original file line number Diff line number Diff line change 1313 "lint" : " eslint ." ,
1414 "preversion" : " git diff --quiet --exit-code && git checkout master && git merge --no-edit develop" ,
1515 "postversion" : " git checkout develop && git merge --no-edit master" ,
16+ "precommit" : " lint-staged" ,
1617 "prepush" : " npm run lint" ,
1718 "premerge" : " npm run lint"
1819 },
1920 "eslintConfig" : {
2021 "extends" : " strelka"
2122 },
23+ "lint-staged" : {
24+ "*.js" : [
25+ " eslint --fix" ,
26+ " git add"
27+ ]
28+ },
2229 "engines" : {
2330 "node" : " >=6.9"
2431 },
You can’t perform that action at this time.
0 commit comments