Skip to content

ESLint

This plugin is enabled if there’s a match in "dependencies" or "devDependencies" in package.json:

  • eslint

  • @eslint/js

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.

The ESLint plugin config resolver is disabled when using eslint-config-next (next lint).

Root cause: microsoft/rushstack#4965/#5049

If relying on configuration cascading, consider using an extended glob pattern like this:

{
"eslint": ["**/.eslintrc.js"]
}

This page was generated from the eslint plugin source code.

ISC License © 2024 Lars Kappert