Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 6147ba0

Browse files
authored
docs: add flat config usage (#158)
1 parent fe6fd72 commit 6147ba0

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,25 @@ module.exports = defineConfig({
5757
});
5858
```
5959

60+
## Flat Config
61+
62+
```ts
63+
// @ts-check
64+
const { defineFlatConfig } = require('eslint-define-config');
65+
66+
module.exports = defineFlatConfig([
67+
'eslint:recommended',
68+
{
69+
plugins: {
70+
// plugins...
71+
},
72+
rules: {
73+
// rules...
74+
},
75+
},
76+
]);
77+
```
78+
6079
# Why?
6180

6281
Improve your eslint configuration experience with:

0 commit comments

Comments
 (0)