From 2236728769129758a18ef6ed5d7cd6cb38256ad7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 14 Jan 2025 13:09:37 -0800 Subject: [PATCH] wip --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 31de1b8161..8021c2ffb6 100644 --- a/index.js +++ b/index.js @@ -90,7 +90,7 @@ const configs = { 'react/jsx-uses-react': SEVERITY_OFF, }, }, - flat: /** @type {{Record}} */ ({}), + flat: /** @type {{ [k in AvailableFlatConfigs]: ReactFlatConfig }} */ ({}), }; /** @typedef {{plugins: {react: typeof plugin}, rules: import('eslint').Linter.RulesRecord, languageOptions: {parserOptions: import('eslint').Linter.ParserOptions}}} ReactFlatConfig */ @@ -102,6 +102,7 @@ const plugin = { configs, }; +/** @type {{ [k in AvailableFlatConfigs]: ReactFlatConfig }} */ configs.flat = { recommended: { plugins: { react: plugin },