Skip to content

Commit de46118

Browse files
committed
Loosen up the jsx-closing-bracket-location rule
So be able to do: ```jsx <If condition={Boolean(this.state.passwordError)} render={() => ( <div></div> )}/> ```
1 parent 8459305 commit de46118

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ module.exports = {
4040
'react/style-prop-object': 'error',
4141
'react/void-dom-elements-no-children': 'error',
4242
'react/jsx-boolean-value': 'error',
43-
'react/jsx-closing-bracket-location': ['error', 'tag-aligned'],
43+
'react/jsx-closing-bracket-location': ['error', {
44+
nonEmpty: 'tag-aligned',
45+
selfClosing: false
46+
}],
4447
'react/jsx-closing-tag-location': 'error',
4548
'react/jsx-curly-spacing': ['error', 'never'],
4649
'react/jsx-equals-spacing': ['error', 'never'],

0 commit comments

Comments
 (0)