Skip to content

Commit a3e90e4

Browse files
nanae772Hiroshiba
andauthored
chore: ESLintのキャッシュを有効化 (#2597)
Co-authored-by: Hiroshiba <[email protected]>
1 parent 95892af commit a3e90e4

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ dist_preview/
5050

5151
# Downloaded binaries
5252
vendored
53+
54+
# Cache
55+
.eslintcache

CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ VITE_DEFAULT_ENGINE_INFOS=`[
232232
pnpm run fmt
233233
```
234234

235+
リントを行うとリポジトリルートにキャッシュファイル`.eslintcache`が作られます。
236+
ESLintがバージョンアップした場合や、設定が変わった場合、キャッシュが壊れた場合はこのファイルを消してください。
237+
235238
- TypeScriptの型チェックを行います。
236239

237240
```bash

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ pnpm run fmt
258258
pnpm run lint
259259
```
260260

261+
リントを行うとリポジトリルートにキャッシュファイル`.eslintcache`が作られます。
262+
ESLintがバージョンアップした場合や、設定が変わった場合、キャッシュが壊れた場合はこのファイルを消してください。
263+
261264
## タイポチェック
262265

263266
[typos](https://github.com/crate-ci/typos) を使ってタイポのチェックを行っています。

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"packageManager": "[email protected]",
1414
"scripts": {
1515
"// --- lint ---": "",
16-
"lint": "cross-env ESLINT_FILE_PROGRESS=1 eslint .",
16+
"lint": "cross-env ESLINT_FILE_PROGRESS=1 eslint --cache",
1717
"lint:inspector": "eslint --inspect-config",
18-
"fmt": "cross-env ESLINT_FILE_PROGRESS=1 eslint . --fix",
18+
"fmt": "cross-env ESLINT_FILE_PROGRESS=1 eslint --fix --cache",
1919
"markdownlint": "markdownlint --ignore node_modules/ --ignore dist/ --ignore dist_electron/ --ignore dist_preview/ ./",
2020
"typecheck": "vue-tsc --noEmit",
2121
"typos": "cross-env ./vendored/typos/typos",

0 commit comments

Comments
 (0)