Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 99d612e

Browse files
committed
feat: enable dropping useless react fragments
1 parent fef82ba commit 99d612e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/configs/react.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export const config: Linter.Config = {
5252
'react/jsx-no-comment-textnodes': 'error',
5353
'react/jsx-no-constructed-context-values': 'error',
5454
'react/jsx-no-target-blank': 'warn',
55+
'react/jsx-no-useless-fragment': ['warn', { allowExpressions: true }],
5556
'react/no-find-dom-node': 'error',
5657
'react/no-render-return-value': 'error',
5758
'react/no-string-refs': 'error',

0 commit comments

Comments
 (0)