An ESLint plugin (v2.2.0) that wraps ESLint core and custom rules to provide autofix functionality. It converts original fixable rules into autofixable versions by applying fixes automatically. Requires Node.js >=18 and ESLint >=8. The plugin prefixes rule names with 'autofix/' and includes a wide range of ESLint built-in rules. Released as part of a monorepo with similar plugins like eslint-plugin-no-autofix. Supports ESLint v9 as of v2.0.0. Differentiator: enables autofix for rules that are normally not fixable, but does not modify the original rule behavior.
npm install eslint-plugin-autofixVerified import paths — ran on the pinned version, not inferred.
Example ESLint configuration using eslint-plugin-autofix to enable autofix for no-debugger and no-unused-vars rules.
Update ESLint to >=8 and Node.js to >=18.
Consider monitoring the repo for updates or using ESLint's built-in autofix.
Always use 'autofix/<rule-name>' format.
Check the rule's documentation to see if it is fixable.
Run 'npm install eslint-plugin-autofix --save-dev' and ensure ESLint version is >=8.
Verify that 'no-unused-vars' is a valid ESLint rule; the autofix plugin wraps most ESLint core rules.
Use 'import autofix from 'eslint-plugin-autofix'' instead of require.