Skip to content

Commit 063db21

Browse files
committedJan 14, 2025
fix(types): fix types of flat configs
Fixes jsx-eslint#3878
1 parent e6b5b41 commit 063db21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ const configs = {
9090
'react/jsx-uses-react': SEVERITY_OFF,
9191
},
9292
},
93-
flat: /** @type {Record<string, ReactFlatConfig>} */ ({
93+
flat: /** @type {Record<"recommended"|"all"|"jsx-runtime", ReactFlatConfig>} */ ({
9494
__proto__: null,
9595
}),
9696
};
9797

9898
/** @typedef {{ plugins: { react: typeof plugin }, rules: import('eslint').Linter.RulesRecord, languageOptions: { parserOptions: import('eslint').Linter.ParserOptions } }} ReactFlatConfig */
9999

100-
/** @type {{ deprecatedRules: typeof deprecatedRules, rules: typeof allRules, configs: typeof configs & { flat: Record<string, ReactFlatConfig> }}} */
100+
/** @type {{ deprecatedRules: typeof deprecatedRules, rules: typeof allRules, configs: typeof configs & { flat: Record<"recommended"|"all"|"jsx-runtime", ReactFlatConfig> }}} */
101101
const plugin = {
102102
deprecatedRules,
103103
rules: allRules,

0 commit comments

Comments
 (0)
Failed to load comments.