{"id":19631,"library":"eslint-filtered-fix","title":"eslint-filtered-fix","description":"A CLI tool and Node.js API to selectively apply ESLint auto-fixes, allowing control over which rules are fixed or to exclude warnings. Version 0.3.0 (latest) supports ESLint >=7.0.0, with async API. Unlike ESLint's built-in --fix, it enables fixing individual rules (--rule) or disabling warning fixes (--no-warnings), producing focused commits. It wraps ESLint's fix functionality and requires an existing ESLint configuration. Release cadence is low; last release was v0.3.0 in 2021.","status":"active","version":"0.3.0","language":"javascript","source_language":"en","source_url":"https://github.com/ianvs/eslint-filtered-fix","tags":["javascript","eslint","fix","autofix"],"install":[{"cmd":"npm install eslint-filtered-fix","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-filtered-fix","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-filtered-fix","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency – uses ESLint's fix engine; must be >=7.0.0","package":"eslint","optional":false}],"imports":[{"note":"Named export since v0.2.0; no default export","wrong":"const eslintFilteredFix = require('eslint-filtered-fix')","symbol":"default","correct":"import { fix } from 'eslint-filtered-fix'"},{"note":"fix is an async function, not a default export","wrong":"const fix = require('eslint-filtered-fix').default","symbol":"fix","correct":"import { fix } from 'eslint-filtered-fix'"},{"note":"CLI is invoked via script, not importable; no cli export","wrong":"import { cli } from 'eslint-filtered-fix'","symbol":"cli","correct":"npx eslint-filtered-fix or yarn eslint-filtered-fix"}],"quickstart":{"code":"npx eslint-filtered-fix src/ --rule semi --rule quotes --no-warnings","lang":"javascript","description":"Fix only 'semi' and 'quotes' rules in src/ while ignoring warnings."},"warnings":[{"fix":"Use `await fix(files, opts)` or handle promise with `.then()`.","message":"Node.js API changed from synchronous to async in v0.2.0. Older code using `const results = fix(files, opts)` without await will get a promise instead of results.","severity":"breaking","affected_versions":">=0.2.0"},{"fix":"Upgrade ESLint to version 7.0.0 or higher, or use eslint-filtered-fix @0.1.x.","message":"Requires ESLint >=7.0.0 as peer dependency since v0.2.0. Older ESLint versions (<=6.x) are incompatible.","severity":"breaking","affected_versions":">=0.2.0"},{"fix":"Write --rule [rule1,rule2] without spaces inside the brackets.","message":"The --rule argument with array syntax must not contain spaces: `--rule [semi,no-console]` is correct, `--rule [semi, no-console]` is invalid.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Omit --no-warnings to see all warnings; use --rule to fix only specific rules instead.","message":"Using --no-warnings also suppresses all warnings from ESLint output, not just autofix warnings. This can hide important lint issues.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Consider migrating to ESLint 8 or 9; check for updates or alternatives like eslint-nibble.","message":"ESLint 7 is now end-of-life; future versions may drop support. The package may not be actively maintained.","severity":"deprecated","affected_versions":">=0.2.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run `npm install --save-dev eslint-filtered-fix`","cause":"Package is not installed in node_modules.","error":"Error: Cannot find module 'eslint-filtered-fix'"},{"fix":"Use `import { fix } from 'eslint-filtered-fix'` or `const { fix } = require('eslint-filtered-fix')`","cause":"Importing incorrectly - fix is a named export, not default.","error":"TypeError: fix is not a function"},{"fix":"Upgrade ESLint to version 7+ or use eslint-filtered-fix@0.1.x for ESLint 6.","cause":"Incompatible ESLint version; ESLint >=7 required.","error":"Cannot read property 'CLIEngine' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}