diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3d187d52..e8fd5eee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,3 @@ jobs: lint: uses: ybiquitous/.github/.github/workflows/nodejs-lint-reusable.yml@main - - commitlint: - uses: ybiquitous/.github/.github/workflows/nodejs-commitlint-reusable.yml@main diff --git a/package.json b/package.json index 06bccac8..f5bb9b04 100644 --- a/package.json +++ b/package.json @@ -66,11 +66,12 @@ "lint:md:fix": "remark . --output", "lint:types": "tsc --noEmit", "lint:types:watch": "npm run lint:types -- --watch", - "lint": "npm-run-all --print-label --parallel lint:*", + "lint:commit": "commitlint --from HEAD~10", + "lint": "npm-run-all --print-label --silent --parallel lint:*", "prettier": "prettier --cache --ignore-path .gitignore .", "lint:styles": "npm run prettier -- --check", "lint:styles:fix": "npm run prettier -- --write", - "format": "npm-run-all --print-label --parallel lint:*:fix", + "format": "npm-run-all --print-label --silent --parallel lint:*:fix", "clean": "git clean -dx --force --exclude=node_modules --exclude=.husky", "prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run clean", "release": "standard-version", diff --git a/test/__snapshots__/init.test.js.snap b/test/__snapshots__/init.test.js.snap index af6528c1..249c7249 100644 --- a/test/__snapshots__/init.test.js.snap +++ b/test/__snapshots__/init.test.js.snap @@ -39,8 +39,9 @@ exports[`update "package.json" 1`] = ` }, "scripts": { "clean": "git clean -dx --force --exclude=node_modules --exclude=.husky", - "format": "npm-run-all --print-label --parallel lint:*:fix", - "lint": "npm-run-all --print-label --parallel lint:*", + "format": "npm-run-all --print-label --silent --parallel lint:*:fix", + "lint": "npm-run-all --print-label --silent --parallel lint:*", + "lint:commit": "commitlint --from HEAD~10", "lint:js": "eslint --cache --ext=js,jsx,cjs,mjs,ts,tsx .", "lint:js:fix": "npm run lint:js -- --fix", "lint:md": "remark . --frail", @@ -106,8 +107,9 @@ exports[`update "package.json" without fields 1`] = ` }, "scripts": { "clean": "git clean -dx --force --exclude=node_modules --exclude=.husky", - "format": "npm-run-all --print-label --parallel lint:*:fix", - "lint": "npm-run-all --print-label --parallel lint:*", + "format": "npm-run-all --print-label --silent --parallel lint:*:fix", + "lint": "npm-run-all --print-label --silent --parallel lint:*", + "lint:commit": "commitlint --from HEAD~10", "lint:js": "eslint --cache --ext=js,jsx,cjs,mjs,ts,tsx .", "lint:js:fix": "npm run lint:js -- --fix", "lint:md": "remark . --frail", @@ -208,9 +210,6 @@ jobs: lint: uses: ybiquitous/.github/.github/workflows/nodejs-lint-reusable.yml@main - - commitlint: - uses: ybiquitous/.github/.github/workflows/nodejs-commitlint-reusable.yml@main " `;