Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 14, 2025
1 parent c51432e commit 2236728
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const configs = {
'react/jsx-uses-react': SEVERITY_OFF,
},
},
flat: /** @type {{Record<AvailableFlatConfigs, ReactFlatConfig>}} */ ({}),
flat: /** @type {{ [k in AvailableFlatConfigs]: ReactFlatConfig }} */ ({}),
};

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

/** @type {{ [k in AvailableFlatConfigs]: ReactFlatConfig }} */
configs.flat = {
recommended: {
plugins: { react: plugin },
Expand Down

0 comments on commit 2236728

Please sign in to comment.