Skip to content

Commit

Permalink
feat(init): rename prettier scripts (#1141)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `npm run prettier:*` scripts are no longer supported.
  • Loading branch information
ybiquitous committed Dec 14, 2021
1 parent 8b9bae5 commit b2eef5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@
"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:* prettier:check",
"lint": "npm-run-all --print-label --parallel lint:*",
"prettier": "prettier --ignore-path .gitignore .",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"lint:styles": "npm run prettier -- --check",
"lint:styles:fix": "npm run prettier -- --write",
"format": "npm-run-all --print-label --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 lint && npm run clean",
"release": "standard-version",
Expand Down
16 changes: 8 additions & 8 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ Object {
},
"scripts": Object {
"clean": "git clean -dx --force --exclude=node_modules --exclude=.husky",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"lint": "npm-run-all --print-label --parallel lint:* prettier:check",
"format": "npm-run-all --print-label --parallel lint:*:fix",
"lint": "npm-run-all --print-label --parallel lint:*",
"lint:js": "eslint --cache --ext=js,jsx,cjs,mjs,ts,tsx .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint:styles": "npm run prettier -- --check",
"lint:styles:fix": "npm run prettier -- --write",
"lint:types": "tsc --noEmit",
"lint:types:watch": "npm run lint:types -- --watch",
"prepare": "husky install",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run lint && npm run clean",
"prettier": "prettier --ignore-path .gitignore .",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run",
"test": "abc",
Expand Down Expand Up @@ -105,19 +105,19 @@ Object {
},
"scripts": Object {
"clean": "git clean -dx --force --exclude=node_modules --exclude=.husky",
"format": "npm-run-all --print-label --parallel lint:*:fix prettier:write",
"lint": "npm-run-all --print-label --parallel lint:* prettier:check",
"format": "npm-run-all --print-label --parallel lint:*:fix",
"lint": "npm-run-all --print-label --parallel lint:*",
"lint:js": "eslint --cache --ext=js,jsx,cjs,mjs,ts,tsx .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
"lint:styles": "npm run prettier -- --check",
"lint:styles:fix": "npm run prettier -- --write",
"lint:types": "tsc --noEmit",
"lint:types:watch": "npm run lint:types -- --watch",
"prepare": "husky install",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run lint && npm run clean",
"prettier": "prettier --ignore-path .gitignore .",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run",
"test": "test",
Expand Down

0 comments on commit b2eef5b

Please sign in to comment.