Skip to content

Commit

Permalink
feat(eslint): use cache (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Aug 2, 2021
1 parent c86e620 commit 60a83d3
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 @@ -58,7 +58,7 @@
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch",
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules jest --coverage",
"test:types": "tsc --project test/tsconfig.test.json --noEmit",
"lint:js": "eslint .",
"lint:js": "eslint --cache .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
Expand All @@ -76,7 +76,7 @@
"prepare": "husky install"
},
"lint-staged": {
"*.{js,jsx,mjs,ts,tsx}": "eslint --fix",
"*.{js,jsx,mjs,ts,tsx}": "eslint --cache --fix",
"!(*.snap)": "prettier --write",
"!(CHANGELOG).md": "remark --frail"
},
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 @@ -30,7 +30,7 @@ Object {
"!(*.snap)": "prettier --write",
"!(CHANGELOG).md": "remark --frail",
"*.css": "xyz",
"*.{js,jsx,mjs,ts,tsx}": "eslint --fix",
"*.{js,jsx,mjs,ts,tsx}": "eslint --cache --fix",
},
"remarkConfig": Object {
"plugins": Array [
Expand All @@ -41,7 +41,7 @@ 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",
"lint:js": "eslint .",
"lint:js": "eslint --cache .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
Expand Down Expand Up @@ -96,7 +96,7 @@ Object {
"lint-staged": Object {
"!(*.snap)": "prettier --write",
"!(CHANGELOG).md": "remark --frail",
"*.{js,jsx,mjs,ts,tsx}": "eslint --fix",
"*.{js,jsx,mjs,ts,tsx}": "eslint --cache --fix",
},
"remarkConfig": Object {
"plugins": Array [
Expand All @@ -107,7 +107,7 @@ 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",
"lint:js": "eslint .",
"lint:js": "eslint --cache .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:md": "remark . --frail",
"lint:md:fix": "remark . --output",
Expand Down

0 comments on commit 60a83d3

Please sign in to comment.