From c6ed90b473edbcb28831ed9cc873b0380714e0af Mon Sep 17 00:00:00 2001 From: Churro <66274903+ChurroC@users.noreply.github.com> Date: Sat, 11 May 2024 16:08:38 -0500 Subject: [PATCH] Fix eslint flat config example (#297) --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fda87ae2..9d9df7b6 100644 --- a/README.md +++ b/README.md @@ -64,11 +64,14 @@ module.exports = defineConfig({ ```ts // @ts-check const { defineFlatConfig } = require('eslint-define-config'); +const js = require('@eslint/js'); +const customConfig = require('./custom-config.js'); /// module.exports = defineFlatConfig([ - 'eslint:recommended', + js.configs.recommended, + customConfig, { plugins: { // plugins...