Registry / testing / eslint-plugin-eslint-config

eslint-plugin-eslint-config

JSON →
library2.0.0jsnpmunverified

ESLint plugin for linting ESLint configuration files, ensuring they are valid and consistent. Current stable version is 2.0.0, released January 2021, with a slow release cadence focused on bug fixes. Key differentiators: validates exported configs via execution, provides presets (recommended-rules, rc, all), and includes rules for deprecated/unknown rules and sorting. Requires ESLint >=5 and Node >=10, with peer dependency on eslint.

npm install eslint-plugin-eslint-config
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-ESLI
E
eslint-plugin-eslint-config
testingjavascriptv2.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

eslint-plugin-eslint-config
import configPlugin from 'eslint-plugin-eslint-config'; // or use through plugins in .eslintrc.js: plugins: ['eslint-config']
const configPlugin = require('eslint-plugin-eslint-config'); // works but not needed if using plugins
Plugin is typically used via the plugins array in ESLint config, not directly imported in code.
rules
import { rules } from 'eslint-plugin-eslint-config'; // then access individual rules via rules['no-deprecated-rules']
const rules = require('eslint-plugin-eslint-config').rules; // common in CJS
The plugin exports a rules object; ESM import as above works, but CJS require is also common.
configs
import { configs } from 'eslint-plugin-eslint-config'; // extend configs.recommendedRules or configs.rc in ESLint config
Available since v1.0.0; configs are exported as named objects matching preset names with camelCase.

Enables eslint-plugin-eslint-config in an ESLint config file, applying rules to ESLint config files.

// .eslintrc.js module.exports = { plugins: ['eslint-config'], overrides: [ { files: ['.eslintrc.js', 'my-config.js'], rules: { 'eslint-config/no-deprecated-rules': 'warn', 'eslint-config/no-invalid-config': 'error', 'eslint-config/no-unknown-rules': 'error', 'eslint-config/sort-rules': 'warn' } } ] };
Debug
Known issues
breakingDropped support for Node 8 in v2.0.0.
fix
Upgrade Node to v10 or higher.
affects: >=2.0.0
breakingUpdated @typescript-eslint/experimental-utils to v4 in v2.0.0, potentially breaking TypeScript users.
fix
Ensure @typescript-eslint packages are compatible; if using TypeScript, update to match.
affects: >=2.0.0
deprecatedThe 'all' preset may change in any release; not recommended for long-term consistency.
fix
Use 'recommended-rules' or 'rc' instead for stable base.
affects: *
gotchaRules execute the config files they lint; can trigger side effects. Should only be applied to specific files via overrides.
fix
Use overrides to limit rules to ESLint config files only.
affects: *
gotchaPlugin name must be 'eslint-config' (without 'eslint-plugin-') in plugins array, or 'eslint-config' as a string.
fix
Set plugins: ['eslint-config'] in your ESLint config.
affects: *
Errors
Common errors & fixes
ESLint configuration is invalid: "eslint-config" is not a known plugin.
Plugin name in plugins array is misspelled or missing.
fix
Add 'eslint-config' to plugins array and ensure eslint-plugin-eslint-config is installed.
Plugin package 'eslint-plugin-eslint-config' not found.
Package not installed or ESLint cannot locate it.
fix
Run npm install --save-dev eslint-plugin-eslint-config or yarn add --dev eslint-plugin-eslint-config.
Cannot read property 'no-deprecated-rules' of undefined
Using the rule with a missing or misconfigured plugin.
fix
Verify plugin is installed and added to plugins array, then use rule as 'eslint-config/no-deprecated-rules'.
ESLint configuration is invalid: "eslint-config/rc" invalid preset.
Extending a preset that doesn't exist or wrong path.
fix
Use configs.rc or extend 'plugin:eslint-config/rc' from ESLint config (note: 'eslint-config' is the plugin prefix).
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required for plugin functionality
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-eslint-config — npm install eslint-plugin-eslint-config · libregistry