From 60a83d3c1f8d83a8cc742b06b0128b9919d6344c Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Mon, 2 Aug 2021 11:59:51 +0900 Subject: [PATCH] feat(eslint): use cache (#1023) --- package.json | 4 ++-- test/__snapshots__/init.test.js.snap | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 55f3b2ec..11160579 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" }, diff --git a/test/__snapshots__/init.test.js.snap b/test/__snapshots__/init.test.js.snap index 88d04071..02eac9d0 100644 --- a/test/__snapshots__/init.test.js.snap +++ b/test/__snapshots__/init.test.js.snap @@ -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 [ @@ -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", @@ -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 [ @@ -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",