Skip to content

Commit

Permalink
Add react/jsx-no-leaked-render rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 21, 2025
1 parent 4765c29 commit 1336af5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ export default [
ignoreCase: true,
},
],
'react/jsx-no-leaked-render': [
'error',
{
validStrategies: [
'ternary',
'coerce',
],
},
],
'react/jsx-no-script-url': 'error',
'react/jsx-no-target-blank': [
'error',
Expand Down

0 comments on commit 1336af5

Please sign in to comment.