Permalink
Browse files

Switch to eslint-config-react-app.

1 parent c3e9976 commit f3dadd21099d753a51b98371d3242df877d5f9c9 @timdorr timdorr committed Jan 5, 2017
Showing with 349 additions and 653 deletions.
  1. +0 −1 .eslintignore
  2. +1 −12 .eslintrc
  3. +1 −1 examples/real-world/src/containers/Root.prod.js
  4. +1 −1 examples/universal/common/components/Counter.js
  5. +7 −4 package.json
  6. +1 −1 src/combineReducers.js
  7. +338 −633 yarn.lock
View
@@ -1,5 +1,4 @@
**/dist/**
-**/examples/**
**/node_modules/**
**/server.js
**/webpack.config*.js
View
@@ -1,14 +1,3 @@
{
- "extends": "rackt",
- "rules": {
- "valid-jsdoc": 2,
- "no-var": 2,
- "prefer-const": 2,
- "react/jsx-uses-react": 1,
- "react/jsx-no-undef": 2,
- "react/wrap-multilines": 2
- },
- "plugins": [
- "react"
- ]
+ "extends": "react-app",
}
@@ -1,4 +1,4 @@
-import React, { Component, PropTypes } from 'react'
+import React, { PropTypes } from 'react'
import { Provider } from 'react-redux'
import routes from '../routes'
import { Router } from 'react-router'
@@ -1,4 +1,4 @@
-import React, { Component, PropTypes } from 'react'
+import React, { PropTypes } from 'react'
const Counter = ({increment, incrementIfOdd, incrementAsync, decrement, counter}) => (
<p>
View
@@ -73,7 +73,7 @@
"devDependencies": {
"babel-cli": "^6.3.15",
"babel-core": "^6.3.15",
- "babel-eslint": "^4.1.6",
+ "babel-eslint": "^7.0.0",
"babel-jest": "^15.0.0",
"babel-loader": "^6.2.0",
"babel-plugin-check-es2015-constants": "^6.3.13",
@@ -100,9 +100,12 @@
"babel-register": "^6.3.13",
"check-es3-syntax-cli": "^0.1.1",
"cross-env": "^1.0.7",
- "eslint": "^1.10.3",
- "eslint-config-rackt": "^1.1.1",
- "eslint-plugin-react": "^3.16.1",
+ "eslint": "^3.8.1",
+ "eslint-config-react-app": "^0.5.0",
+ "eslint-plugin-flowtype": "^2.29.2",
+ "eslint-plugin-import": "^2.2.0",
+ "eslint-plugin-jsx-a11y": "2.2.3",
+ "eslint-plugin-react": "^6.8.0",
"gitbook-cli": "^2.3.0",
"glob": "^6.0.4",
"jest": "^15.1.1",
@@ -6,7 +6,7 @@ const NODE_ENV = typeof process !== 'undefined' ? process.env.NODE_ENV : 'develo
function getUndefinedStateErrorMessage(key, action) {
const actionType = action && action.type
- const actionName = actionType && `"${actionType.toString()}"` || 'an action'
+ const actionName = (actionType && `"${actionType.toString()}"`) || 'an action'
return (
`Given action ${actionName}, reducer "${key}" returned undefined. ` +
Oops, something went wrong.

0 comments on commit f3dadd2

Please sign in to comment.