Skip to content

Commit 699d28a

Browse files
authored
Don't cache ESLint results (#295)
The `eslint` executable takes a `--cache` option, which instructs ESLint to save the results of linting for each file, skipping linting in the future for files that haven't changed. While this does tend to make repeated runs faster, in other repos where this technique is also used, we've noticed that the cache can also give misleading output when running `eslint` with various other options, making debugging lint issues frustrating. It is better in the long run to disable caching.
1 parent 33e16dd commit 699d28a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"lint:constraints": "yarn constraints",
3939
"lint:dependencies": "depcheck && yarn dedupe --check",
4040
"lint:dependencies:fix": "depcheck && yarn dedupe",
41-
"lint:eslint": "eslint . --cache",
41+
"lint:eslint": "eslint .",
4242
"lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies:fix && yarn lint:changelog",
4343
"lint:misc": "prettier '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern",
4444
"prepack": "./scripts/prepack.sh",

0 commit comments

Comments
 (0)