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.

npm install eslint-plugin-disable-autofix
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-DISA
E
eslint-plugin-disable-autofix
testingjavascriptv6.1.1
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.

plugin
import plugin from 'eslint-plugin-disable-autofix'
const plugin = require('eslint-plugin-disable-autofix')
Package is ESM-only; default export is the plugin object.
configure
import { configure } from 'eslint-plugin-disable-autofix'
import { configure } from 'eslint-plugin-disable-autofix/configure'
Named export from main entry point, not a subpath.
createPlugin
import { createPlugin } from 'eslint-plugin-disable-autofix'
import { createPlugin } from 'eslint-plugin-disable-autofix/utils'
Named export, not a separate utility file.

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 issues
breakingVersion 5.0+ requires ESLint 9 (flat config only); not compatible with .eslintrc or legacy config.
fix
Migrate to flat config (eslint.config.js) or stay on v4.x for legacy ESLint 8 support.
affects: >=5.0.0
deprecatedThe old `no-autofix` rule configuration is deprecated in favor of `configure()` helper.
fix
Use `configure({ rules: ['rule-name'] })` instead of manually setting `'disable-autofix/no-autofix'`.
affects: >=6.1.0
gotchaThe plugin only works with ESLint 9 flat config; attempts to use with legacy config will silently fail to disable autofix.
fix
Ensure eslint.config.js is used and eslint >=9.0.0 is installed.
affects: >=5.0.0
gotchaWhen using `createPlugin()`, you must prefix rule names with the plugin name, e.g. `'plugin-name/rule-name'`, unless you set `mode: 'prefixed'` explicitly.
fix
Use the `configure` helper to automatically add prefixes.
affects: >=6.1.0
Errors
Common errors & fixes
Error: Cannot find module 'eslint-plugin-disable-autofix'
Package not installed or not found in node_modules.
fix
Run `npm install eslint-plugin-disable-autofix --save-dev`.
Error: Failed to load plugin 'disable-autofix': Cannot find module 'eslint/use-at-your-own-risk'
Outdated version of the plugin that used fragile filesystem paths.
fix
Update to v6.1.1+ (npm update eslint-plugin-disable-autofix).
Error: Rule 'no-autofix' is not defined in 'disable-autofix' plugin
Using legacy rule name 'no-autofix' without proper prefix or missing plugin in config.
fix
Ensure the plugin is added to `plugins` and use `'disable-autofix/no-autofix'` as the rule key.
Upgrade
Version history
6.1.1latest on npm
Audit
Dependencies
eslintrequiredpeer dependency, required at version >=9.0.0 for flat config support
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-disable-autofix — npm install eslint-plugin-disable-autofix · libregistry