From 2a7176f7de39480f8968d50ff1dd6c5d44fb0a72 Mon Sep 17 00:00:00 2001 From: Greg Hurrell Date: Thu, 8 Aug 2019 12:03:37 +0200 Subject: [PATCH] feat!: enforce use of React fragment shorthand syntax Breaking because this may cause the linter to emit new errors. Rule: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-fragments.md Closes: https://github.com/liferay/eslint-config-liferay/issues/57 --- react.js | 1 + 1 file changed, 1 insertion(+) diff --git a/react.js b/react.js index 244232b..a91be95 100644 --- a/react.js +++ b/react.js @@ -24,6 +24,7 @@ const config = { /** * @see https://github.com/yannickcr/eslint-plugin-react */ + 'react/jsx-fragments': 'error', 'react/jsx-key': 'error', 'react/jsx-no-comment-textnodes': 'error', 'react/jsx-no-duplicate-props': 'error',