Skip to content

Commit e84af68

Browse files
committed
Add require-render-return rule to recommended configuration
1 parent 936c42a commit e84af68

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ The rules enabled in this configuration are:
167167
* [react/no-unknown-property](docs/rules/no-unknown-property.md)
168168
* [react/prop-types](docs/rules/prop-types.md)
169169
* [react/react-in-jsx-scope](docs/rules/react-in-jsx-scope.md)
170+
* [react/require-render-return](docs/rules/require-render-return.md)
170171

171172
**Note**: This configuration will also enable JSX in [parser options](http://eslint.org/docs/user-guide/configuring#specifying-parser-options).
172173

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ module.exports = {
8484
'react/no-unknown-property': 2,
8585
'react/no-render-return-value': 2,
8686
'react/prop-types': 2,
87-
'react/react-in-jsx-scope': 2
87+
'react/react-in-jsx-scope': 2,
88+
'react/require-render-return': 2
8889
}
8990
},
9091
all: {

0 commit comments

Comments
 (0)