{"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,"search_vec":"'0.3.0':30 '2021':82 '7.0.0':34 'allow':18 'api':10,37 'appli':13 'async':36 'auto':16 'auto-fix':15 'autofix':86 'built':42 'built-in':41 'cadenc':74 'cli':6 'commit':60 'configur':72 'control':19 'disabl':52 'enabl':46 'eslint':2,14,33,39,63,71,84 'eslint-filtered-fix':1 'exclud':27 'exist':70 'filter':3 'fix':4,17,24,44,47,54,65,85 'focus':59 'function':66 'individu':48 'javascript':83 'last':77 'latest':31 'low':76 'no-warn':55 'node.js':9 'produc':58 'releas':73,78 'requir':68 'rule':22,49,50 'select':12 'support':32 'tool':7 'unlik':38 'v0.3.0':80 'version':29 'warn':28,53,57 'wrap':62","created_at":"2026-04-25T11:18:48.906200+00:00","updated_at":"2026-04-25T11:18:48.906200+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"eslint-filtered-fix","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/ianvs/eslint-filtered-fix","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-filtered-fix","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}