Skip to content

Commit

Permalink
docs: add flat config example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
nix6839 committed Apr 4, 2024
1 parent 9ded3f8 commit 92a710f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@ npm install eslint-plugin-compat

### 2. Update ESLint Config

#### `.eslintrc.json`
#### New Config (`eslint.config.mjs`)

```js
import compat from "eslint-plugin-compat"

export default [
compat.configs['flat/recommended']
];
```

#### Legacy Config (`.eslintrc.json`)

```jsonc
{
Expand Down

0 comments on commit 92a710f

Please sign in to comment.