Permalink
Browse files

Make lint pass and update deprecated rule.

  • Loading branch information...
1 parent 3cefaa3 commit d4450b9bb1876dd8db0346913f80769cdf59b747 @timdorr timdorr committed Sep 16, 2016
Showing with 8 additions and 4 deletions.
  1. +1 −1 .eslintrc
  2. +1 −0 modules/IndexRedirect.js
  3. +2 −1 modules/IndexRoute.js
  4. +2 −1 modules/Redirect.js
  5. +2 −1 modules/Route.js
View
@@ -5,7 +5,7 @@
},
"rules": {
"react/display-name": 0,
- "react/wrap-multilines": 2
+ "react/jsx-wrap-multilines": 2
},
"plugins": [
"react"
@@ -9,6 +9,7 @@ const { string, object } = React.PropTypes
/**
* An <IndexRedirect> is used to redirect from an indexRoute.
*/
+/* eslint-disable react/require-render-return */
const IndexRedirect = React.createClass({
statics: {
@@ -10,6 +10,7 @@ const { func } = React.PropTypes
* An <IndexRoute> is used to specify its parent's <Route indexRoute> in
* a JSX route config.
*/
+/* eslint-disable react/require-render-return */
const IndexRoute = React.createClass({
statics: {
@@ -43,7 +44,7 @@ const IndexRoute = React.createClass({
'<IndexRoute> elements are for router configuration only and should not be rendered'
)
}
-
+
})
export default IndexRoute
View
@@ -13,10 +13,11 @@ const { string, object } = React.PropTypes
* Redirects are placed alongside routes in the route configuration
* and are traversed in the same manner.
*/
+/* eslint-disable react/require-render-return */
const Redirect = React.createClass({
statics: {
-
+
createRouteFromReactElement(element) {
const route = createRouteFromReactElement(element)
View
@@ -15,7 +15,8 @@ const { string, func } = React.PropTypes
* that lead to it are considered "active" and their components are
* rendered into the DOM, nested in the same order as in the tree.
*/
-const Route = React.createClass({
+/* eslint-disable react/require-render-return */
+const Route = React.createClass({
statics: {
createRouteFromReactElement

0 comments on commit d4450b9

Please sign in to comment.