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

Commit c6ed90b

Browse files
authored
Fix eslint flat config example (#297)
1 parent ea48f49 commit c6ed90b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,14 @@ module.exports = defineConfig({
6464
```ts
6565
// @ts-check
6666
const { defineFlatConfig } = require('eslint-define-config');
67+
const js = require('@eslint/js');
68+
const customConfig = require('./custom-config.js');
6769

6870
/// <reference types="@eslint-types/typescript-eslint" />
6971

7072
module.exports = defineFlatConfig([
71-
'eslint:recommended',
73+
js.configs.recommended,
74+
customConfig,
7275
{
7376
plugins: {
7477
// plugins...

0 commit comments

Comments
 (0)