-
Notifications
You must be signed in to change notification settings - Fork 379
Add ESLint cache support via new settings #2120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -96,6 +96,26 @@ | |
| "default": {}, | ||
| "markdownDescription": "The eslint options object to provide args normally passed to eslint when executed from a command line (see https://eslint.org/docs/developer-guide/nodejs-api#eslint-class)." | ||
| }, | ||
| "eslint.cache": { | ||
| "scope": "resource", | ||
| "type": "boolean", | ||
| "default": false, | ||
| "markdownDescription": "Enables ESLint's cache when linting on save (`eslint.run` must be `onSave`). The cache file (`.eslintcache`) can be reused by command-line ESLint and pre-commit hooks, improving their performance." | ||
| }, | ||
| "eslint.cacheLocation": { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This on eslint.cache.location |
||
| "scope": "resource", | ||
| "type": "string", | ||
| "markdownDescription": "Path to the ESLint cache file. If not specified, defaults to `.eslintcache` in the working directory. Only used when `eslint.cache` is enabled." | ||
| }, | ||
| "eslint.cacheStrategy": { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and this on eslint.cache.strategy |
||
| "scope": "resource", | ||
| "type": "string", | ||
| "enum": [ | ||
| "metadata", | ||
| "content" | ||
| ], | ||
| "markdownDescription": "Strategy for the ESLint cache to detect changed files. `metadata` uses file metadata (faster) while `content` uses file content (for environments where metadata is unreliable). Only used when `eslint.cache` is enabled." | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add a sentence about the default value |
||
| }, | ||
| "eslint.trace.server": { | ||
| "scope": "window", | ||
| "anyOf": [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would name this eslint.cache.enable