Commit bbbc15dc authored by Đinh Quang Trung's avatar Đinh Quang Trung Committed by Dan Abramov
Browse files

ESLint 4 (#2735)

* Update eslint-loader 1.7.1 -> 1.9.0

* Add eslintPath option

* Update eslint 3.19.0 -> 4.1.1

* Update peer dependencies

* Move eslintPath config to outside @remove-on-eject
parent 16f0d4a5
Showing with 7 additions and 5 deletions
+7 -5
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
], ],
"peerDependencies": { "peerDependencies": {
"babel-eslint": "^7.2.3", "babel-eslint": "^7.2.3",
"eslint": "^3.19.0", "eslint": "^4.1.1",
"eslint-plugin-flowtype": "^2.33.0", "eslint-plugin-flowtype": "^2.33.0",
"eslint-plugin-import": "^2.2.0", "eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^5.0.3", "eslint-plugin-jsx-a11y": "^5.0.3",
......
...@@ -136,6 +136,7 @@ module.exports = { ...@@ -136,6 +136,7 @@ module.exports = {
{ {
options: { options: {
formatter: eslintFormatter, formatter: eslintFormatter,
eslintPath: require.resolve('eslint'),
// @remove-on-eject-begin // @remove-on-eject-begin
baseConfig: { baseConfig: {
extends: [require.resolve('eslint-config-react-app')], extends: [require.resolve('eslint-config-react-app')],
......
...@@ -136,6 +136,7 @@ module.exports = { ...@@ -136,6 +136,7 @@ module.exports = {
{ {
options: { options: {
formatter: eslintFormatter, formatter: eslintFormatter,
eslintPath: require.resolve('eslint'),
// @remove-on-eject-begin // @remove-on-eject-begin
// TODO: consider separate config for production, // TODO: consider separate config for production,
// e.g. to enable no-console and no-debugger only in production. // e.g. to enable no-console and no-debugger only in production.
......
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
"chalk": "1.1.3", "chalk": "1.1.3",
"css-loader": "0.28.4", "css-loader": "0.28.4",
"dotenv": "4.0.0", "dotenv": "4.0.0",
"eslint": "3.19.0", "eslint": "4.1.1",
"eslint-config-react-app": "^1.0.5", "eslint-config-react-app": "^1.0.5",
"eslint-loader": "1.7.1", "eslint-loader": "1.9.0",
"eslint-plugin-flowtype": "2.34.0", "eslint-plugin-flowtype": "2.34.0",
"eslint-plugin-import": "2.2.0", "eslint-plugin-import": "2.7.0",
"eslint-plugin-jsx-a11y": "5.0.3", "eslint-plugin-jsx-a11y": "5.1.1",
"eslint-plugin-react": "7.1.0", "eslint-plugin-react": "7.1.0",
"extract-text-webpack-plugin": "2.1.2", "extract-text-webpack-plugin": "2.1.2",
"file-loader": "0.11.2", "file-loader": "0.11.2",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment