Skip to content

Commit

Permalink
fix(react): fix jsx-boolean-value error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Jiang committed Mar 19, 2024
1 parent 5cafd31 commit e7debb6
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 45 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
"eslint-plugin-vuejs-accessibility": "^2.2.1",
"globals": "^14.0.0",
"local-pkg": "^0.5.0",
"typescript-eslint": "^7.2.0",
"typescript-eslint": "^7.3.1",
"vue-eslint-parser": "^9.4.2"
},
"devDependencies": {
"@types/eslint": "^8.56.5",
"@types/node": "^20.11.28",
"@types/node": "^20.11.29",
"bumpp": "^9.4.0",
"changelogithub": "^0.13.3",
"eslint": "^8.57.0",
Expand Down
146 changes: 104 additions & 42 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/configs/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const reactRules = (

const jsxRules = (ruleOptions: NonNullable<ReactOptions['ruleOptions']>): FlatConfigItem['rules'] => ({
// @ts-expect-error - type definition is not up-to-date
'react/jsx-boolean-value': ['error', 'never', [{ assumeUndefinedIsFalse: false }]],
'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 e7debb6

Please sign in to comment.