# eslint-plugin-disable-autofix

> Disable autofix for ESLint rules without turning them off

Latest version **6.1.1** (published 2026-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-disable-autofix
pnpm add eslint-plugin-disable-autofix
yarn add eslint-plugin-disable-autofix
bun add eslint-plugin-disable-autofix
```

## Health

**Score 60/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.1.1 |
| Published | 2026-03-08 |
| First published | 2021-09-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.18.0 |
| Dependencies | 0 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | Mikl Wolfe |
| Maintainers | chiefmikey |
| Keywords | eslint, eslintplugin, eslint-plugin, disable, autofix, suggestions, flat-config |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-disable-autofix
- Repository: https://github.com/chiefmikey/eslint-plugin-disable-autofix
- Issues: https://github.com/chiefmikey/eslint-plugin-disable-autofix/issues
- npm.io page: https://npm.io/package/eslint-plugin-disable-autofix

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 6.1.1 (latest) — 2026-03-08
- 6.1.0 — 2026-03-06
- 6.0.0 — 2026-03-02
- 5.0.1 — 2024-05-29
- 5.0.0 — 2024-05-29
- 4.3.0 — 2024-04-04
- 4.2.0 — 2024-02-08
- 4.1.0 — 2023-10-20
- 4.0.6 — 2023-10-18
- 4.0.5 — 2023-09-28
- 4.0.4 — 2023-09-25
- 4.0.3 — 2023-09-25
- 4.0.2 — 2023-09-25
- 4.0.1 — 2023-09-23
- 4.0.0 — 2023-09-23
- … 24 more at https://npm.io/package/eslint-plugin-disable-autofix/versions

## README

# eslint-plugin-disable-autofix

🎉 **Compatible with ESLint 10** 🎉

Disable autofix for ESLint rules without turning them off.

- Rules still report violations but `eslint --fix` and IDE quick-fixes won't change your code
- Works with any rule from any plugin — builtin, third-party, scoped, ESM
- `configure()` helper — simplified setup, easy to maintain
- Selective modes — disable autofix only, suggestions only, or both
- Lazy loading — plugins loaded on demand
- Monorepo support — pnpm, Nx, Yarn workspaces, Turborepo
- ESLint 9 and 10 flat config
- Zero dependencies

## Install

```sh
npm i -D eslint-plugin-disable-autofix
```

## Usage

### configure()

The `configure()` helper handles the boilerplate of disabling the original rule and enabling the prefixed version:

```js
// eslint.config.js
import disableAutofix from 'eslint-plugin-disable-autofix';

export default [
  disableAutofix.configure({
    'prefer-const': 'warn',
    'no-var': 'error',
    '@stylistic/semi': ['error', 'always'],
  }),
];
```

### Manual setup

```js
import disableAutofix from 'eslint-plugin-disable-autofix';

export default [
  {
    plugins: { 'disable-autofix': disableAutofix },
    rules: {
      'prefer-const': 'off',
      'disable-autofix/prefer-const': 'warn',
    },
  },
];
```

### Selective modes

By default, both autofix and suggestions are disabled. Use `createPlugin()` to disable one or the other:

```js
import disableAutofix from 'eslint-plugin-disable-autofix';

// Disable autofix only — keep IDE suggestions
const disableFix = disableAutofix.createPlugin({ mode: 'fix' });

// Disable suggestions only — keep autofix
const disableSuggest = disableAutofix.createPlugin({ mode: 'suggest' });

export default [
  disableFix.configure({ 'prefer-const': 'warn' }),
  disableSuggest.configure({ 'no-console': 'warn' }),
];
```

### Restrict to specific plugins

```js
const limited = disableAutofix.createPlugin({ plugins: ['react', 'unicorn'] });
```

Only wraps rules from the listed plugin prefixes. Builtin ESLint rules are always included.

## License

MIT

---
_Source: https://npm.io/package/eslint-plugin-disable-autofix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
