From c075fa8c6756b9b7a4e18974e64efc048a53bec0 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 6 Jul 2019 14:08:09 +0700 Subject: [PATCH] Add `react/jsx-curly-newline` rule https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-newline.md --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index 2a96c42..00c6743 100644 --- a/index.js +++ b/index.js @@ -75,6 +75,13 @@ module.exports = { } ], 'react/jsx-closing-tag-location': 'error', + 'react/jsx-curly-newline': [ + 'error', + { + multiline: 'consistent', + singleline: 'forbid' + } + ], 'react/jsx-curly-spacing': [ 'error', 'never'