mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 08:38:08 -05:00
[eslint config] [react] [semver-minor] Add react/jsx-first-prop-new-line rule
This commit is contained in:
5
packages/eslint-config-airbnb/rules/react.js
vendored
5
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -157,7 +157,7 @@ module.exports = {
|
||||
'everything-else',
|
||||
'/^render.+$/',
|
||||
'render'
|
||||
]
|
||||
],
|
||||
}],
|
||||
// Prevent missing parentheses around multilines JSX
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/wrap-multilines.md
|
||||
@@ -166,6 +166,9 @@ module.exports = {
|
||||
'assignment': true,
|
||||
'return': true
|
||||
}],
|
||||
// Require that the first prop in a JSX element be on a new line when the element is multiline
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-first-prop-new-line.md
|
||||
'react/jsx-first-prop-new-line': [2, 'multiline'],
|
||||
},
|
||||
'settings': {
|
||||
'import/resolver': {
|
||||
|
||||
Reference in New Issue
Block a user