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

Commit 48e0ae4

Browse files
authored
Update README for eslint.config.js (#169)
1 parent 68e24ed commit 48e0ae4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
# eslint-define-config
2323

24-
Provide a `defineConfig` function for `.eslintrc.js` files.
24+
Provide a `defineConfig` function for `.eslintrc.js`, and a `defineFlatConfig` function for `eslint.config.js` files.
2525

2626
> This project is written by a human and only partially automatically generated!
2727
> Some rules are even enhanced by hand!
@@ -59,6 +59,8 @@ module.exports = defineConfig({
5959

6060
## Flat Config
6161

62+
`eslint.config.js`
63+
6264
```ts
6365
// @ts-check
6466
const { defineFlatConfig } = require('eslint-define-config');
@@ -81,7 +83,7 @@ module.exports = defineFlatConfig([
8183
Improve your eslint configuration experience with:
8284

8385
- auto-suggestions
84-
- type checking (Use `// @ts-check` at the first line in your `.eslintrc.js`)
86+
- type checking (Use `// @ts-check` at the first line in your `.eslintrc.js` or `eslint.config.js`)
8587
- documentation
8688
- deprecation warnings
8789

0 commit comments

Comments
 (0)