ESLint
Enabled
Section titled “Enabled”This plugin is enabled if there’s a match in "dependencies"
or "devDependencies"
in package.json
:
-
eslint
-
@eslint/js
Default configuration
Section titled “Default configuration”If this plugin is enabled, the following configuration is added automatically:
{ "eslint": { "config": [ "eslint.config.{js,cjs,mjs,ts,cts,mts}", ".eslintrc", ".eslintrc.{js,json,cjs}", ".eslintrc.{yml,yaml}", "package.json" ] }}
Depending on local configuration, plugins may modify the defaults as shown.
Custom config
or entry
options override default values, they are not merged.
See Plugins for more details about plugins and their entry
and config
options.
ESLint v9
Section titled “ESLint v9”The ESLint plugin config resolver is disabled when using eslint-config-next
(next lint
).
Root cause: microsoft/rushstack#4965/#5049
ESLint v8
Section titled “ESLint v8”If relying on configuration cascading, consider using an extended glob pattern like this:
{ "eslint": ["**/.eslintrc.js"]}
Generated from source
Section titled “Generated from source”This page was generated from the eslint plugin source code.
ISC License © 2024 Lars Kappert