src/eslint/env/react.ts:63:13 - error TS2322: Type '{ "react/hook-use-state": "error"; "react/iframe-missing-sandbox": "error"; "react/jsx-boolean-value": "error"; "react/jsx-no-script-url": "error"; "react/jsx-no-useless-fragment": "error"; ... 27 more ...; 'react/require-render-return': number; }' is not assignable to type 'Partial<RulesRecord>'.
Property ''react/react-in-jsx-scope'' is incompatible with index signature.
Type 'number' is not assignable to type 'RuleEntry<any[]> | undefined'.
63 rules: {
~~~~~
../../node_modules/eslint/lib/types/index.d.ts:1304:9
1304 rules?: Partial<Rules>;
~~~~~
The expected type comes from property 'rules' which is declared here on type 'Config<RulesRecord>'
Root cause: All rules (e.g. line 221 and following in index.d.ts) are declared to have number value type which is incompatible to ESLint's expected RuleEntry type which resolves as
Root cause: All rules (e.g. line 221 and following in index.d.ts) are declared to have
number
value type which is incompatible to ESLint's expectedRuleEntry
type which resolves asI think best would be to use
RuleSeverity
there. Or the actual values used in the preset configuration. (?)