Skip to content

Commit 2c60177

Browse files
authored
dx: add --cache to eslint in lint scripts (#1512)
1 parent f24379f commit 2c60177

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

client/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"scripts": {
77
"serve": "vite serve",
88
"build": "vite build",
9-
"lint": "tsc --noEmit && eslint --ext .js,.ts,.vue --fix .",
9+
"lint": "tsc --noEmit && eslint --cache --ext .js,.ts,.vue --fix .",
1010
"i18n:report": "vue-cli-service i18n:report --src \"./src/**/*.?(js|vue)\" --locales \"./src/locales/**/*.json\"",
11-
"lint-ci": "tsc --noEmit && eslint .",
11+
"lint-ci": "tsc --noEmit && eslint --cache .",
1212
"test": "vitest run --coverage",
1313
"cy:open": "cypress open --component",
1414
"cy:run": "cypress run --component"

common/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
},
2020
"scripts": {
2121
"build": "tsc",
22-
"lint": "tsc --noEmit && eslint --ext .js,.ts --fix .",
23-
"lint-ci": "tsc --noEmit && eslint .",
22+
"lint": "tsc --noEmit && eslint --cache --ext .js,.ts --fix .",
23+
"lint-ci": "tsc --noEmit && eslint --cache .",
2424
"test": "vitest run --coverage"
2525
},
2626
"dependencies": {

server/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"start-lean": "node --experimental-specifier-resolution=node --optimize-for-size --max-old-space-size=200 --conditions=lean ts-out/app.js",
1010
"debug": "nodemon --exec node --experimental-specifier-resolution=node --loader ts-node/esm --ignore 'tests/*' --inspect -e ts,js app.ts",
1111
"build": "tsc",
12-
"lint": "tsc --noEmit --noErrorTruncation && eslint --fix .",
13-
"lint-ci": "tsc --noEmit && eslint .",
12+
"lint": "tsc --noEmit --noErrorTruncation && eslint --cache --fix .",
13+
"lint-ci": "tsc --noEmit && eslint --cache .",
1414
"test": "vitest run --coverage"
1515
},
1616
"dependencies": {

0 commit comments

Comments
 (0)