You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -130,11 +130,11 @@ This extension contributes the following variables to the [settings](https://cod
130
130
}
131
131
```
132
132
-`eslint.packageManager`: controls the package manager to be used to resolve the ESLint library. This has only an influence if the ESLint library is resolved globally. Valid values are`"npm"` or`"yarn"` or`"pnpm"`.
133
-
-`eslint.options`: options to configure how ESLint is started using the[ESLint CLI Engine API](http://eslint.org/docs/developer-guide/nodejs-api#cliengine). Defaults to an empty option bag.
133
+
-`eslint.options`: options to configure how ESLint is started using the[ESLintclass API](http://eslint.org/docs/developer-guide/nodejs-api#eslint-class). (If you use ESLint<=v7, it will be used as an option for[CLI Engine](http://eslint.org/docs/developer-guide/nodejs-api#cliengine).) Defaults to an empty option bag.
134
134
An example to point to a custom`.eslintrc.json` file is:
-`eslint.run` - run the linter`onSave` or`onType`, default is`onType`.
@@ -145,7 +145,7 @@ This extension contributes the following variables to the [settings](https://cod
145
145
-`eslint.probe` = an array for language identifiers for which the ESLint extension should be activated and should try to validate the file. If validation fails for probed languages the extension says silent. Defaults to`["javascript", "javascriptreact", "typescript", "typescriptreact", "html", "vue", "markdown"]`.
146
146
-`eslint.validate` - an array of language identifiers specifying the files for which validation is to be enforced. This is an old legacy setting and should in normal cases not be necessary anymore. Defaults to`["javascript", "javascriptreact"]`.
147
147
-`eslint.format.enable`: enables ESLint as a formatter for validated files. Although you can also use the formatter on save using the setting`editor.formatOnSave` it is recommended to use the`editor.codeActionsOnSave` feature since it allows for better configurability.
148
-
-`eslint.workingDirectories` - specifies how the working directories ESLint is using are computed. ESLint resolves configuration files (e.g.`eslintrc`,`.eslintignore`) relative to a working directory so it is important to configure this correctly. If executing ESLint in the terminal requires you to change the working directory in the terminal into a sub folder then it is usually necessary to tweak this setting. (see also[CLIEngineoptions#cwd](https://eslint.org/docs/developer-guide/nodejs-api#cliengine)). Please also keep in mind that the`.eslintrc*` file is resolved considering the parent directories whereas the`.eslintignore` file is only honored in the current working directory. The following values can be used:
148
+
-`eslint.workingDirectories` - specifies how the working directories ESLint is using are computed. ESLint resolves configuration files (e.g.`eslintrc`,`.eslintignore`) relative to a working directory so it is important to configure this correctly. If executing ESLint in the terminal requires you to change the working directory in the terminal into a sub folder then it is usually necessary to tweak this setting. (see also[ESLint classoptions#cwd](https://eslint.org/docs/developer-guide/nodejs-api#eslint-class)). Please also keep in mind that the`.eslintrc*` file is resolved considering the parent directories whereas the`.eslintignore` file is only honored in the current working directory. The following values can be used:
149
149
-`[{ "mode": "location" }]` (@since 2.0.0): instructs ESLint to uses the workspace folder location or the file location (if no workspace folder is open) as the working directory. This is the default and is the same strategy as used in older versions of the ESLint extension (1.9.x versions).
150
150
-`[{ "mode": "auto" }]` (@since 2.0.0): instructs ESLint to infer a working directory based on the location of`package.json`,`.eslintignore` and`.eslintrc*` files. This might work in many cases but can lead to unexpected results as well.
151
151
-`string[]`: an array of working directories to use.
Copy file name to clipboardExpand all lines: package.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@
92
92
"scope":"resource",
93
93
"type":"object",
94
94
"default": {},
95
-
"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#cliengine)."
95
+
"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)."
96
96
},
97
97
"eslint.trace.server": {
98
98
"scope":"window",
@@ -250,7 +250,7 @@
250
250
}
251
251
]
252
252
},
253
-
"markdownDescription":"Specifies how the working directories ESLint is using are computed. ESLint resolves configuration files (e.g. `eslintrc`, `.eslintignore`) relative to a working directory so it is important to configure this correctly."
253
+
"markdownDescription":"Specifies how the working directories ESLint is using are computed. ESLint resolves configuration files (e.g. `eslintrc`, `.eslintignore`) relative to a working directory so it is important to configure this correctly."
254
254
},
255
255
"eslint.validate": {
256
256
"scope":"resource",
@@ -353,7 +353,7 @@
353
353
}
354
354
},
355
355
"additionalProperties":false,
356
-
"markdownDescription":"Show disable lint rule in the quick fix menu."
356
+
"markdownDescription":"Show disable lint rule in the quick fix menu."
357
357
},
358
358
"eslint.codeAction.showDocumentation": {
359
359
"scope":"resource",
@@ -369,7 +369,7 @@
369
369
}
370
370
},
371
371
"additionalProperties":false,
372
-
"markdownDescription":"Show open lint rule documentation web page in the quick fix menu."
372
+
"markdownDescription":"Show open lint rule documentation web page in the quick fix menu."
connection.console.error(`The eslint library loaded from${libraryPath} doesn\'texporta CLIEngine. You need at least eslint@1.0.0`);
940
+
connection.console.error(`The eslint library loaded from${libraryPath} doesn\'tneither exportsa CLIEngine nor an ESLint class. You need at least eslint@1.0.0`);