Skip to content

Commit

Permalink
feat(react): explicitly define assumeUndefinedIsFalse option for `j…
Browse files Browse the repository at this point in the history
…sx-boolean-value`
  • Loading branch information
Tony Jiang committed Mar 6, 2024
1 parent 3b0887b commit 3deac3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/configs/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ const reactRules = (ruleOptions: NonNullable<ReactOptions['ruleOptions']>): Flat


const jsxRules = (ruleOptions: NonNullable<ReactOptions['ruleOptions']>): FlatConfigItem['rules'] => ({
'react/jsx-boolean-value': ['error', 'never'],
// @ts-expect-error - type definition is not up-to-date
'react/jsx-boolean-value': ['error', 'never', [{ assumeUndefinedIsFalse: false }]],
'react/jsx-filename-extension': ['error', { extensions: ['.jsx'] }],
'react/jsx-fragments': ['error', 'syntax'],
'react/jsx-key': [
Expand Down

0 comments on commit 3deac3f

Please sign in to comment.