Skip to content

Commit a71c2d1

Browse files
committed
[eslint config] add disabled jsx-fragments rule
1 parent 834d717 commit a71c2d1

File tree

1 file changed

+5
-0
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+5
-0
lines changed

packages/eslint-config-airbnb/rules/react.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,11 @@ module.exports = {
460460
// Prevent usage of UNSAFE_ methods
461461
// https://github.com/yannickcr/eslint-plugin-react/blob/157cc932be2cfaa56b3f5b45df6f6d4322a2f660/docs/rules/no-unsafe.md
462462
'react/no-unsafe': 'off',
463+
464+
// Enforce shorthand or standard form for React fragments
465+
// https://github.com/yannickcr/eslint-plugin-react/blob/bc976b837abeab1dffd90ac6168b746a83fc83cc/docs/rules/jsx-fragments.md
466+
// TODO: enable, semver-major
467+
'react/jsx-fragments': ['off', 'syntax'],
463468
},
464469

465470
settings: {

0 commit comments

Comments
 (0)