Skip to content

Commit

Permalink
feat(prettier): add --cache option (#1305)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous authored Jun 20, 2022
1 parent 0944af3 commit 0860daa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"lint:types": "tsc --noEmit",
"lint:types:watch": "npm run lint:types -- --watch",
"lint": "npm-run-all --print-label --parallel lint:*",
"prettier": "prettier --ignore-path .gitignore .",
"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",
Expand All @@ -79,7 +79,7 @@
},
"lint-staged": {
"*.{js,jsx,cjs,mjs,ts,tsx}": "eslint --cache --fix",
"!(*.snap)": "prettier --write",
"!(*.snap)": "prettier --cache --write",
"!(CHANGELOG).md": "remark --frail"
},
"standard-version": {
Expand Down
8 changes: 4 additions & 4 deletions test/__snapshots__/init.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Object {
"root": true,
},
"lint-staged": Object {
"!(*.snap)": "prettier --write",
"!(*.snap)": "prettier --cache --write",
"!(CHANGELOG).md": "remark --frail",
"*.css": "xyz",
"*.{js,jsx,cjs,mjs,ts,tsx}": "eslint --cache --fix",
Expand All @@ -52,7 +52,7 @@ Object {
"prepare": "husky install",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run clean",
"pretest": "npm run lint",
"prettier": "prettier --ignore-path .gitignore .",
"prettier": "prettier --cache --ignore-path .gitignore .",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run",
"test": "abc",
Expand Down Expand Up @@ -95,7 +95,7 @@ Object {
"root": true,
},
"lint-staged": Object {
"!(*.snap)": "prettier --write",
"!(*.snap)": "prettier --cache --write",
"!(CHANGELOG).md": "remark --frail",
"*.{js,jsx,cjs,mjs,ts,tsx}": "eslint --cache --fix",
},
Expand All @@ -119,7 +119,7 @@ Object {
"prepare": "husky install",
"prerelease": "git switch main && git pull && npm ci && npm run clean && npm test && npm run clean",
"pretest": "npm run lint",
"prettier": "prettier --ignore-path .gitignore .",
"prettier": "prettier --cache --ignore-path .gitignore .",
"release": "standard-version",
"release:dry-run": "standard-version --dry-run",
"test": "test",
Expand Down

0 comments on commit 0860daa

Please sign in to comment.