File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "hooks": {
3- "pre-commit": "yarn format:stage && yarn lint",
3+ "pre-commit": "lint-staged ",
44 "pre-push": "yarn build"
55 }
66}
Original file line number Diff line number Diff line change 1+ {
2+ "**/*.ts": ["yarn format", "yarn lint"]
3+ }
Original file line number Diff line number Diff line change 1616 "postbuild" : " copyfiles CHANGELOG.md LICENSE package.json README.md dist" ,
1717 "purge" : " rm -rf node_modules" ,
1818 "clean" : " rm -rf dist" ,
19- "format" : " prettier --write ." ,
20- "format:check" : " prettier --check ." ,
21- "format:stage" : " pretty-quick --staged" ,
19+ "format" : " prettier --write --ignore-path .gitignore **/*.ts" ,
20+ "format:check" : " prettier --check --ignore-path .gitignore **/*.ts" ,
2221 "lint" : " eslint --quiet --ignore-path .gitignore **/*.ts" ,
2322 "release" : " standard-version --no-verify" ,
2423 "release:major" : " yarn release --release-as major" ,
3938 "eslint-plugin-promise" : " ^4.2.1" ,
4039 "eslint-plugin-standard" : " ^4.0.1" ,
4140 "husky" : " ^2.3.0" ,
41+ "lint-staged" : " ^10.0.9" ,
4242 "prettier" : " ^2.0.2" ,
43- "pretty-quick" : " ^2.0.1" ,
4443 "rollup" : " ^1.12.3" ,
4544 "rollup-plugin-node-resolve" : " ^5.0.0" ,
4645 "rollup-plugin-typescript2" : " ^0.21.1" ,
Original file line number Diff line number Diff line change 1313 "sourceMap" : true ,
1414 "strict" : true
1515 },
16- "include" : [" src/**/*" ]
16+ "include" : [
17+ " **/*.ts"
18+ ]
1719}
You can’t perform that action at this time.
0 commit comments