From 6932eb1234d40b77b7f1e56507be058d12c6977e Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sat, 8 Aug 2020 14:50:00 +0900 Subject: [PATCH] feat(init): `lint` script includes `prettier:check` --- .github/workflows/test.yml | 1 - package.json | 2 +- test/__snapshots__/init.test.js.snap | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e92d4d95..b31d578a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/package.json b/package.json index 2a63248a..beef3f93 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/__snapshots__/init.test.js.snap b/test/__snapshots__/init.test.js.snap index fca1ac06..753b208a 100644 --- a/test/__snapshots__/init.test.js.snap +++ b/test/__snapshots__/init.test.js.snap @@ -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", @@ -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",