We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c51432e commit 2236728Copy full SHA for 2236728
index.js
@@ -90,7 +90,7 @@ const configs = {
90
'react/jsx-uses-react': SEVERITY_OFF,
91
},
92
93
- flat: /** @type {{Record<AvailableFlatConfigs, ReactFlatConfig>}} */ ({}),
+ flat: /** @type {{ [k in AvailableFlatConfigs]: ReactFlatConfig }} */ ({}),
94
};
95
96
/** @typedef {{plugins: {react: typeof plugin}, rules: import('eslint').Linter.RulesRecord, languageOptions: {parserOptions: import('eslint').Linter.ParserOptions}}} ReactFlatConfig */
@@ -102,6 +102,7 @@ const plugin = {
102
configs,
103
104
105
+/** @type {{ [k in AvailableFlatConfigs]: ReactFlatConfig }} */
106
configs.flat = {
107
recommended: {
108
plugins: { react: plugin },
0 commit comments