Skip to content

Commit 2236728

Browse files
committed
wip
1 parent c51432e commit 2236728

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const configs = {
9090
'react/jsx-uses-react': SEVERITY_OFF,
9191
},
9292
},
93-
flat: /** @type {{Record<AvailableFlatConfigs, ReactFlatConfig>}} */ ({}),
93+
flat: /** @type {{ [k in AvailableFlatConfigs]: ReactFlatConfig }} */ ({}),
9494
};
9595

9696
/** @typedef {{plugins: {react: typeof plugin}, rules: import('eslint').Linter.RulesRecord, languageOptions: {parserOptions: import('eslint').Linter.ParserOptions}}} ReactFlatConfig */
@@ -102,6 +102,7 @@ const plugin = {
102102
configs,
103103
};
104104

105+
/** @type {{ [k in AvailableFlatConfigs]: ReactFlatConfig }} */
105106
configs.flat = {
106107
recommended: {
107108
plugins: { react: plugin },

0 commit comments

Comments
 (0)