Skip to content

Commit

Permalink
feat(init): lint script includes prettier:check (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Aug 8, 2020
1 parent e69c824 commit bb2f205
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run prettier:check
- run: npm run lint
- run: npm test
- run: npm run release:dry-run
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint:types": "tsc --noEmit",
"lint": "npm-run-all --print-label --parallel lint:*",
"lint": "npm-run-all --print-label --parallel lint:* prettier:check",
"prettier": "prettier --ignore-path .gitignore .",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Object {
},
"scripts": Object {
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"lint": "npm-run-all --print-label --parallel lint:*",
"lint": "npm-run-all --print-label --parallel lint:* prettier:check",
"lint:js": "eslint .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
Expand Down Expand Up @@ -122,7 +122,7 @@ Object {
},
"scripts": Object {
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"lint": "npm-run-all --print-label --parallel lint:*",
"lint": "npm-run-all --print-label --parallel lint:* prettier:check",
"lint:js": "eslint .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
Expand Down

0 comments on commit bb2f205

Please sign in to comment.