Skip to content

Commit 25075b5

Browse files
committed
[eslint config] [minor] enable react/jsx-curly-newline
1 parent a23f93e commit 25075b5

File tree

1 file changed

+2
-3
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,9 @@ module.exports = {
474474

475475
// Enforce linebreaks in curly braces in JSX attributes and expressions.
476476
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-newline.md
477-
// TODO: enable, semver-minor
478-
'react/jsx-curly-newline': ['off', {
477+
'react/jsx-curly-newline': ['error', {
479478
multiline: 'consistent',
480-
single: 'consistent',
479+
singleline: 'consistent',
481480
}],
482481

483482
// Enforce state initialization style

0 commit comments

Comments
 (0)