[eslint config] [minor] enable react/jsx-curly-newline

This commit is contained in:
Jordan Harband
2019-08-09 23:50:40 -07:00
parent a23f93eb00
commit 25075b5f72

View File

@@ -474,10 +474,9 @@ module.exports = {
// Enforce linebreaks in curly braces in JSX attributes and expressions.
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-newline.md
// TODO: enable, semver-minor
'react/jsx-curly-newline': ['off', {
'react/jsx-curly-newline': ['error', {
multiline: 'consistent',
single: 'consistent',
singleline: 'consistent',
}],
// Enforce state initialization style