Skip to content

Commit d4450b9

Browse files
committed
Make lint pass and update deprecated rule.
1 parent 3cefaa3 commit d4450b9

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"rules": {
77
"react/display-name": 0,
8-
"react/wrap-multilines": 2
8+
"react/jsx-wrap-multilines": 2
99
},
1010
"plugins": [
1111
"react"

modules/IndexRedirect.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const { string, object } = React.PropTypes
99
/**
1010
* An <IndexRedirect> is used to redirect from an indexRoute.
1111
*/
12+
/* eslint-disable react/require-render-return */
1213
const IndexRedirect = React.createClass({
1314

1415
statics: {

modules/IndexRoute.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const { func } = React.PropTypes
1010
* An <IndexRoute> is used to specify its parent's <Route indexRoute> in
1111
* a JSX route config.
1212
*/
13+
/* eslint-disable react/require-render-return */
1314
const IndexRoute = React.createClass({
1415

1516
statics: {
@@ -43,7 +44,7 @@ const IndexRoute = React.createClass({
4344
'<IndexRoute> elements are for router configuration only and should not be rendered'
4445
)
4546
}
46-
47+
4748
})
4849

4950
export default IndexRoute

modules/Redirect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ const { string, object } = React.PropTypes
1313
* Redirects are placed alongside routes in the route configuration
1414
* and are traversed in the same manner.
1515
*/
16+
/* eslint-disable react/require-render-return */
1617
const Redirect = React.createClass({
1718

1819
statics: {
19-
20+
2021
createRouteFromReactElement(element) {
2122
const route = createRouteFromReactElement(element)
2223

modules/Route.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const { string, func } = React.PropTypes
1515
* that lead to it are considered "active" and their components are
1616
* rendered into the DOM, nested in the same order as in the tree.
1717
*/
18-
const Route = React.createClass({
18+
/* eslint-disable react/require-render-return */
19+
const Route = React.createClass({
1920

2021
statics: {
2122
createRouteFromReactElement

0 commit comments

Comments
 (0)