File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1515 key : ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
1616 restore-keys : ${{runner.os}}-npm-
1717 - run : npm ci
18+ - run : npm run style:check
1819 - run : npm test
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ bash> npm run build
1515
1616It also has a pre-commit hook configured via
1717[ husky] ( https://www.npmjs.com/package/husky ) that should run the build script
18- before each commit.
18+ before each commit. Additionally, this hook formats code and lints it, as
19+ well.
1920
2021## Releasing
2122
Original file line number Diff line number Diff line change 88 "private" : true ,
99 "scripts" : {
1010 "build" : " ncc build src/main.ts" ,
11- "format" : " prettier --write src __test__" ,
11+ "format:check" : " prettier --check src __test__" ,
12+ "format:write" : " prettier --write src __test__" ,
1213 "lint" : " eslint src __test__" ,
13- "check" : " run-p --continue-on-error --aggregate-output format lint" ,
14- "pre-commit" : " run-s check test build" ,
14+ "style:check" : " run-p --continue-on-error --aggregate-output format:check lint" ,
15+ "style:write" : " run-p --continue-on-error --aggregate-output format:write lint" ,
16+ "pre-commit" : " run-s style:write test build" ,
1517 "test" : " jest"
1618 },
1719 "husky" : {
You can’t perform that action at this time.
0 commit comments