Registry / testing / eslint-plugin-disable-autofix

eslint-plugin-disable-autofix

JSON →
library6.1.1jsnpmunverified

ESLint plugin that disables autofix for specific rules without turning them off entirely, allowing rules to report but not auto-fix. Version 6.1.1 supports ESLint 9 flat config exclusively, with proxy-based lazy loading for improved performance. Key differentiators: requires no manual prefix handling in flat config, automatically wraps rules to prevent autofix, and includes a `configure()` helper for easy setup. Active development, frequent releases.

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

Package is ESM-only; default export is the plugin object.

import plugin from 'eslint-plugin-disable-autofix'

Named export from main entry point, not a subpath.

import { configure } from 'eslint-plugin-disable-autofix'

Named export, not a separate utility file.

import { createPlugin } from 'eslint-plugin-disable-autofix'

Flat config example: disables autofix for 'no-unused-vars' and 'semi' rules.

// eslint.config.js import plugin from 'eslint-plugin-disable-autofix'; import js from '@eslint/js'; export default [ js.configs.recommended, { plugins: { 'disable-autofix': plugin, }, rules: { 'disable-autofix/no-autofix': ['error', { rules: ['no-unused-vars', 'semi'] }], }, }, ];
Debug
Known footguns
breakingVersion 5.0+ requires ESLint 9 (flat config only); not compatible with .eslintrc or legacy config.
deprecatedThe old `no-autofix` rule configuration is deprecated in favor of `configure()` helper.
gotchaThe plugin only works with ESLint 9 flat config; attempts to use with legacy config will silently fail to disable autofix.
gotchaWhen using `createPlugin()`, you must prefix rule names with the plugin name, e.g. `'plugin-name/rule-name'`, unless you set `mode: 'prefixed'` explicitly.
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
10 hits · last 30 days
gptbot
4
ahrefsbot
4
script
1
Resources