Registry / devops / eslint-filtered-fix

eslint-filtered-fix

JSON →
library0.3.0jsnpmunverified

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.

npm install eslint-filtered-fix
INSTALL
IMPORT
SIG · ESLINT-FILTERED-FI
E
eslint-filtered-fix
devopsjavascriptv0.3.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import { fix } from 'eslint-filtered-fix'
const eslintFilteredFix = require('eslint-filtered-fix')
Named export since v0.2.0; no default export
fix
import { fix } from 'eslint-filtered-fix'
const fix = require('eslint-filtered-fix').default
fix is an async function, not a default export
cli
npx eslint-filtered-fix or yarn eslint-filtered-fix
import { cli } from 'eslint-filtered-fix'
CLI is invoked via script, not importable; no cli export

Fix only 'semi' and 'quotes' rules in src/ while ignoring warnings.

npx eslint-filtered-fix src/ --rule semi --rule quotes --no-warnings
eslint-filtered-fix --version
Debug
Known issues
breakingNode.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.
fix
Use `await fix(files, opts)` or handle promise with `.then()`.
affects: >=0.2.0
breakingRequires ESLint >=7.0.0 as peer dependency since v0.2.0. Older ESLint versions (<=6.x) are incompatible.
fix
Upgrade ESLint to version 7.0.0 or higher, or use eslint-filtered-fix @0.1.x.
affects: >=0.2.0
gotchaThe --rule argument with array syntax must not contain spaces: `--rule [semi,no-console]` is correct, `--rule [semi, no-console]` is invalid.
fix
Write --rule [rule1,rule2] without spaces inside the brackets.
affects: >=0.0.0
gotchaUsing --no-warnings also suppresses all warnings from ESLint output, not just autofix warnings. This can hide important lint issues.
fix
Omit --no-warnings to see all warnings; use --rule to fix only specific rules instead.
affects: >=0.0.0
deprecatedESLint 7 is now end-of-life; future versions may drop support. The package may not be actively maintained.
fix
Consider migrating to ESLint 8 or 9; check for updates or alternatives like eslint-nibble.
affects: >=0.2.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint-filtered-fix'
Package is not installed in node_modules.
fix
Run `npm install --save-dev eslint-filtered-fix`
TypeError: fix is not a function
Importing incorrectly - fix is a named export, not default.
fix
Use `import { fix } from 'eslint-filtered-fix'` or `const { fix } = require('eslint-filtered-fix')`
Cannot read property 'CLIEngine' of undefined
Incompatible ESLint version; ESLint >=7 required.
fix
Upgrade ESLint to version 7+ or use eslint-filtered-fix@0.1.x for ESLint 6.
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies
eslintrequiredPeer dependency – uses ESLint's fix engine; must be >=7.0.0
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-filtered-fix — npm install eslint-filtered-fix · libregistry