An open API service indexing awesome lists of open source software.

https://github.com/typed-sigterm/eslint-plugin-autocorrect

Integrate Autocorrect with ESLint.
https://github.com/typed-sigterm/eslint-plugin-autocorrect

eslint eslint-plugin

Last synced: 3 months ago
JSON representation

Integrate Autocorrect with ESLint.

Awesome Lists containing this project

README

        

# `eslint-plugin-autocorrect`

Integrate [AutoCorrect](https://github.com/huacnlee/autocorrect) with ESLint.

## Usage

Install `eslint-plugin-autocorrect` using your package manager, and add this to `eslint.config.js`:

```js
import autocorrect from 'eslint-plugin-autocorrect';
import { defineConfig } from 'eslint/config';

export default defineConfig([
{
plugins: {
autocorrect,
},
rules: {
'autocorrect/issue': 'error',
},
},
]);
```

The plugin provides a single rule `autocorrect/issue` to report issues found by AutoCorrect, and auto-fixes.

The plugin requires eslint >= 9.