Skip to content

Commit 57f6d27

Browse files
committed
docs: useFlatConfig option for eslint
1 parent eefaefe commit 57f6d27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/checkers/eslint.md

+1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ Advanced object configuration table of `options.eslint`
3535
| field | Type | Default value | Description |
3636
| :----------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
3737
| lintCommand | `string` | This value is required | `lintCommand` will be executed at build mode, and will also be used as default config for dev mode when `eslint.dev.eslint` is nullable. |
38+
| useFlatConfig | `boolean` | `false` | If `true`, the plugin will use the new [flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new) of ESLint. |
3839
| dev.overrideConfig | [`ESLint.Options`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/eslint/index.d.ts) | `undefined` | **(Only in dev mode)** You can override the options of the translated from `lintCommand`. Config priority: `const eslint = new ESLint({cwd: root, ...translatedOptions, ...pluginConfig.eslint.dev?.overrideConfig, })`. |
3940
| dev.logLevel | `('error' \| 'warning')[]` | `['error', 'warning']` | **(Only in dev mode)** Which level of ESLint should be emitted to terminal and overlay in dev mode |

0 commit comments

Comments
 (0)