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.

devopstesting
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.

Named export since v0.2.0; no default export

import { fix } from 'eslint-filtered-fix'

fix is an async function, not a default export

import { fix } from 'eslint-filtered-fix'

CLI is invoked via script, not importable; no cli export

npx eslint-filtered-fix or yarn eslint-filtered-fix

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 footguns
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.
breakingRequires ESLint >=7.0.0 as peer dependency since v0.2.0. Older ESLint versions (<=6.x) are incompatible.
gotchaThe --rule argument with array syntax must not contain spaces: `--rule [semi,no-console]` is correct, `--rule [semi, no-console]` is invalid.
gotchaUsing --no-warnings also suppresses all warnings from ESLint output, not just autofix warnings. This can hide important lint issues.
deprecatedESLint 7 is now end-of-life; future versions may drop support. The package may not be actively maintained.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
9 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources