ESLint 6.0.0, announced on June 21, changes where the JavaScript linting tool looks for plugins. Teams using a globally installed copy of ESLint need to install those plugins inside each project instead of relying on global plugin installations. The change also separates two lookup rules: plugins normally resolve from the user’s project, while shareable configurations and parsers resolve from the configuration file that imports them. [S1][S2]

Previously, plugin loading was tied to the location of the ESLint package itself. The project says that design could fail to find plugins and shared configurations in some setups, particularly with Lerna and Yarn Plug n’ Play. Its version 6 migration guide makes the repair explicit: keep plugins local to the projects being checked, even if the ESLint executable remains global. Packages imported by a configuration file belong among the dependencies of the project containing that file. The executable can stay global; the plugins need not follow it. [S2]

A configuration stored outside the application needs a different arrangement. For users selecting that file with --config, the guide suggests installing plugins as dependencies alongside the configuration and setting --resolve-plugins-relative-to to the configuration’s location. That flag changes the plugin lookup base; it does not make the two lookup rules interchangeable. A team maintaining a central lint configuration should therefore check both the selected configuration path and the plugin-resolution setting in its automated build command. [S2]

A practical migration test is to compare the developer’s project with the continuous-integration runner. Check where each installs plugins, which configuration file imports the parser and shared configurations, and whether an external configuration needs an explicit plugin lookup base. These checks follow from the documented resolution rules; they are not evidence that every global installation fails. [S2]

Loading the packages successfully does not preserve every old lint result. Version 6 adds rules to eslint:recommended, removes no-console from that preset and stops the preset from disabling core rules it does not recommend. An existing explicit no-console setting is a separate matter. Teams that relied on the preset to reject console calls can set that rule explicitly; new findings from the revised preset should be examined separately from missing-plugin errors. [S2]

Plugin maintainers have a documentation task too. ESLint warns that instructions produced by generator-eslint are likely to contain outdated advice for global installations. Those instructions should direct users to install plugins in the consuming project, even when ESLint itself is global. [S2]

Source documents

  1. ESLint v6.0.0 releasedhttps://eslint.org/blog/2019/06/eslint-v6.0.0-released/
  2. Migrating to v6.0.0 — guide in the v6.0.0 release taghttps://raw.githubusercontent.com/eslint/eslint/v6.0.0/docs/user-guide/migrating-to-6.0.0.md