ESLint plugin to disable other ESLint plugins for specific files using file path patterns or inline comments. Current stable version is 2.0.3, release cadence low (last release 2020). Key differentiator: selectively disables entire plugins per file, reducing noise in mixed-codebases (e.g., tests vs. source) without disabling rules individually. v2.0.0 broke compatibility with pre-ESLint 6 configs and introduced a required processor declaration. Alternative to manually managing overrides for every rule.
npm install eslint-plugin-disableVerified import paths — ran on the pinned version, not inferred.
Configure .eslintrc to disable 'react' plugin for test files via override and inline comment. Both methods suppress react rules in those files.
Add 'processor': 'disable/disable' to your ESLint config (root or overrides).
Use ESLint CLI --ext option (e.g., eslint --ext .js,.ts .).
Update settings in .eslintrc: use 'disable/plugins' array instead of nested object.
Use ESLint CLI --ext to list file extensions for linting.
Specify plugins to disable, or use 'eslint-plugin-disable-all-except' with explicit list.
Install: npm install eslint-plugin-disable --save-dev. Then add 'disable' to plugins array.
Ensure disabled plugins' rules are not applied to those files; plugin suppression occurs after rule loading.
Add 'processor': 'disable/disable' to the relevant override or root config.