diff --git a/README.md b/README.md index d95aad38..ed5a0962 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,25 @@ module.exports = defineConfig({ }); ``` +## Flat Config + +```ts +// @ts-check +const { defineFlatConfig } = require('eslint-define-config'); + +module.exports = defineFlatConfig([ + 'eslint:recommended', + { + plugins: { + // plugins... + }, + rules: { + // rules... + }, + }, +]); +``` + # Why? Improve your eslint configuration experience with: