Skip to content

Commit f64c910

Browse files
trungdq88kasperpeulen
authored andcommitted
ESLint 4 (facebook#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
1 parent a0240c3 commit f64c910

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

packages/eslint-config-react-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"peerDependencies": {
1414
"babel-eslint": "^7.2.3",
15-
"eslint": "^3.19.0",
15+
"eslint": "^4.1.1",
1616
"eslint-plugin-flowtype": "^2.33.0",
1717
"eslint-plugin-import": "^2.2.0",
1818
"eslint-plugin-jsx-a11y": "^5.0.3",

packages/react-scripts/config/webpack.config.dev.js

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ module.exports = {
144144
{
145145
options: {
146146
formatter: eslintFormatter,
147+
eslintPath: require.resolve('eslint'),
147148
// @remove-on-eject-begin
148149
baseConfig: {
149150
extends: [require.resolve('eslint-config-react-app')],

packages/react-scripts/config/webpack.config.prod.js

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ module.exports = {
144144
{
145145
options: {
146146
formatter: eslintFormatter,
147+
eslintPath: require.resolve('eslint'),
147148
// @remove-on-eject-begin
148149
// TODO: consider separate config for production,
149150
// e.g. to enable no-console and no-debugger only in production.

packages/react-scripts/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
"chalk": "1.1.3",
3333
"css-loader": "0.28.4",
3434
"dotenv": "4.0.0",
35-
"eslint": "3.19.0",
35+
"eslint": "4.1.1",
3636
"eslint-config-react-app": "^1.0.5",
37-
"eslint-loader": "1.7.1",
37+
"eslint-loader": "1.9.0",
3838
"eslint-plugin-flowtype": "2.34.0",
39-
"eslint-plugin-import": "2.2.0",
40-
"eslint-plugin-jsx-a11y": "5.0.3",
39+
"eslint-plugin-import": "2.7.0",
40+
"eslint-plugin-jsx-a11y": "5.1.1",
4141
"eslint-plugin-react": "7.1.0",
4242
"extract-text-webpack-plugin": "2.1.2",
4343
"file-loader": "0.11.2",

0 commit comments

Comments
 (0)