Skip to content

Commit

Permalink
ESLint 4 (#2735)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
trungdq88 authored and swengorschewski committed Oct 12, 2017
1 parent 798a4d4 commit 0242f91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config-react-app/package.json
Expand Up @@ -12,7 +12,7 @@
],
"peerDependencies": {
"babel-eslint": "^7.2.3",
"eslint": "^3.19.0",
"eslint": "^4.1.1",
"eslint-plugin-flowtype": "^2.33.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^5.0.3",
Expand Down
12 changes: 3 additions & 9 deletions packages/react-scripts/config/webpack.config.dev.js
Expand Up @@ -163,14 +163,8 @@ module.exports = {
{
exclude: [
/\.html$/,
// We have to write /\.(js|jsx)(\?.*)?$/ rather than just /\.(js|jsx)$/
// because you might change the hot reloading server from the custom one
// to Webpack's built-in webpack-dev-server/client?/, which would not
// get properly excluded by /\.(js|jsx)$/ because of the query string.
// Webpack 2 fixes this, but for now we include this hack.
// https://github.com/facebookincubator/create-react-app/issues/1713
/\.(js|jsx)(\?.*)?$/,
/\.(ts|tsx)(\?.*)?$/,
/\.(js|jsx)$/,
/\.(ts|tsx)$/,
/\.css$/,
/\.json$/,
/\.bmp$/,
Expand Down Expand Up @@ -241,7 +235,7 @@ module.exports = {
],
},
// ** STOP ** Are you adding a new loader?
// Remember to add the new extension(s) to the "url" loader exclusion list.
// Remember to add the new extension(s) to the "file" loader exclusion list.
],
},
plugins: [
Expand Down

0 comments on commit 0242f91

Please sign in to comment.