ESLint utility (v5.0.0, released Dec 2024) that finds built-in and plugin rules missing from your custom ESLint config. Supports both legacy (.eslintrc) and flat config (eslint.config.js). Offers options to list all available rules, current rules, deprecated rules, plugin-specific rules, and unused rules. Actively maintained with support for ESLint v8.57+ and v9.18+. Compatible with Node >=18.20. Differentiators: CLI-first, zero-config for simple use, explicit flag for flat config, and options to include/exclude deprecated or core rules.
npm install eslint-find-rulesVerified import paths — ran on the pinned version, not inferred.
Shows how to add eslint-find-rules as an npm script to detect unused or missing rules in your ESLint config.
Upgrade Node to 18.20+ and ESLint to 8.57.1+ or 9.18+
Pin to eslint-find-rules@4.x if using older ESLint
Use ESLint >= 7 or stick to v3.x
Install eslint-find-rules as a devDependency and run via npm script
Add --include deprecated or -i deprecated flag to include deprecated rules
Add --flatConfig to the command when using eslint.config.js
npm install eslint --save-dev
Check the config file for errors, ensure it exports a valid config object
Upgrade eslint-find-rules to v4.2.0+ with npm install eslint-find-rules@latest
Add -n/--no-error flag if you want to suppress exit code