Skip to content

Commit 0ffed85

Browse files
authored
Bump dependencies (facebook#2170)
* Bump dependencies * Bump CSS deps * Somehow I missed dotenv * Bump ESLint deps * Tweak ESLint rules
1 parent c5e5eb5 commit 0ffed85

File tree

9 files changed

+55
-92
lines changed

9 files changed

+55
-92
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"precommit": "lint-staged"
1414
},
1515
"devDependencies": {
16-
"eslint": "3.16.1",
16+
"eslint": "3.19.0",
1717
"husky": "^0.13.2",
1818
"lerna": "2.0.0-beta.38",
1919
"lerna-changelog": "^0.2.3",

packages/babel-preset-react-app/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
"index.js"
1212
],
1313
"dependencies": {
14-
"babel-plugin-dynamic-import-node": "1.0.0",
14+
"babel-plugin-dynamic-import-node": "1.0.2",
1515
"babel-plugin-syntax-dynamic-import": "6.18.0",
16-
"babel-plugin-transform-class-properties": "6.23.0",
16+
"babel-plugin-transform-class-properties": "6.24.1",
1717
"babel-plugin-transform-object-rest-spread": "6.23.0",
1818
"babel-plugin-transform-react-constant-elements": "6.23.0",
19-
"babel-plugin-transform-react-jsx": "6.23.0",
19+
"babel-plugin-transform-react-jsx": "6.24.1",
2020
"babel-plugin-transform-react-jsx-self": "6.22.0",
2121
"babel-plugin-transform-react-jsx-source": "6.22.0",
22-
"babel-plugin-transform-regenerator": "6.22.0",
22+
"babel-plugin-transform-regenerator": "6.24.1",
2323
"babel-plugin-transform-runtime": "6.23.0",
24-
"babel-preset-env": "1.2.1",
25-
"babel-preset-react": "6.23.0",
24+
"babel-preset-env": "1.4.0",
25+
"babel-preset-react": "6.24.1",
2626
"babel-runtime": "6.23.0"
2727
}
2828
}

packages/eslint-config-react-app/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ If you want to use this ESLint configuration in a project not built with Create
1919
First, install this package, ESLint and the necessary plugins.
2020

2121
```sh
22-
npm install --save-dev eslint-config-react-app babel-eslint@7.1.1 eslint@3.16.1 eslint-plugin-flowtype@2.21.0 eslint-plugin-import@2.0.1 [email protected] eslint-plugin-react@6.4.1
22+
npm install --save-dev eslint-config-react-app babel-eslint@7.2.3 eslint@3.19.0 eslint-plugin-flowtype@2.33.0 eslint-plugin-import@2.2.0 [email protected] eslint-plugin-react@7.0.1
2323
```
2424

2525
Then create a file named `.eslintrc` with following contents in the root folder of your project:

packages/eslint-config-react-app/index.js

+4-39
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,6 @@ module.exports = {
109109
},
110110
},
111111

112-
settings: {
113-
'import/ignore': ['node_modules'],
114-
'import/extensions': ['.js'],
115-
'import/resolver': {
116-
node: {
117-
extensions: ['.js', '.json'],
118-
},
119-
},
120-
},
121-
122112
rules: {
123113
// http://eslint.org/docs/rules/
124114
'array-callback-return': 'warn',
@@ -242,38 +232,13 @@ module.exports = {
242232
},
243233
],
244234

245-
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/
246-
247-
// TODO: import rules are temporarily disabled because they don't play well
248-
// with how eslint-loader only checks the file you change. So if module A
249-
// imports module B, and B is missing a default export, the linter will
250-
// record this as an issue in module A. Now if you fix module B, the linter
251-
// will not be aware that it needs to re-lint A as well, so the error
252-
// will stay until the next restart, which is really confusing.
253-
254-
// This is probably fixable with a patch to eslint-loader.
255-
// When file A is saved, we want to invalidate all files that import it
256-
// *and* that currently have lint errors. This should fix the problem.
257-
// (As an exception, import/no-webpack-loader-syntax can be enabled already
258-
// because it doesn't depend on whether the file exists, so this issue
259-
// doesn't apply to it.)
260-
261-
// 'import/default': 'warn',
262-
// 'import/export': 'warn',
263-
// 'import/named': 'warn',
264-
// 'import/namespace': 'warn',
265-
// 'import/no-amd': 'warn',
266-
// 'import/no-duplicates': 'warn',
267-
// 'import/no-extraneous-dependencies': 'warn',
268-
// 'import/no-named-as-default': 'warn',
269-
// 'import/no-named-as-default-member': 'warn',
270-
// 'import/no-unresolved': ['warn', { commonjs: true }],
271-
// We don't support configuring Webpack using import source strings, so this
272-
// is always an error.
235+
// https://github.com/benmosher/eslint-plugin-import/tree/master/docs/rules
273236
'import/no-webpack-loader-syntax': 'error',
274237

275238
// https://github.com/yannickcr/eslint-plugin-react/tree/master/docs/rules
239+
'react/jsx-no-comment-textnodes': 'warn',
276240
'react/jsx-no-duplicate-props': ['warn', { ignoreCase: true }],
241+
'react/jsx-no-target-blank': 'warn',
277242
'react/jsx-no-undef': 'error',
278243
'react/jsx-pascal-case': [
279244
'warn',
@@ -289,7 +254,7 @@ module.exports = {
289254
'react/no-direct-mutation-state': 'warn',
290255
'react/no-is-mounted': 'warn',
291256
'react/react-in-jsx-scope': 'error',
292-
'react/require-render-return': 'warn',
257+
'react/require-render-return': 'error',
293258
'react/style-prop-object': 'warn',
294259

295260
// https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"index.js"
1212
],
1313
"peerDependencies": {
14-
"babel-eslint": "^7.0.0",
15-
"eslint": "^3.16.1",
16-
"eslint-plugin-flowtype": "^2.21.0",
17-
"eslint-plugin-import": "^2.0.1",
18-
"eslint-plugin-jsx-a11y": "^5.0.0",
19-
"eslint-plugin-react": "^6.4.1"
14+
"babel-eslint": "^7.2.3",
15+
"eslint": "^3.19.0",
16+
"eslint-plugin-flowtype": "^2.33.0",
17+
"eslint-plugin-import": "^2.2.0",
18+
"eslint-plugin-jsx-a11y": "^5.0.1",
19+
"eslint-plugin-react": "^7.0.1"
2020
}
2121
}

packages/react-dev-utils/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@
2929
],
3030
"dependencies": {
3131
"address": "1.0.1",
32-
"anser": "1.1.0",
33-
"babel-code-frame": "6.20.0",
32+
"anser": "1.3.0",
33+
"babel-code-frame": "6.22.0",
3434
"chalk": "1.1.3",
3535
"cross-spawn": "4.0.2",
3636
"escape-string-regexp": "1.0.5",
3737
"filesize": "3.3.0",
3838
"gzip-size": "3.0.0",
39-
"html-entities": "1.2.0",
40-
"opn": "4.0.2",
41-
"recursive-readdir": "2.1.1",
42-
"shell-quote": "^1.6.1",
43-
"sockjs-client": "1.1.2",
39+
"html-entities": "1.2.1",
40+
"opn": "5.0.0",
41+
"recursive-readdir": "2.2.1",
42+
"shell-quote": "1.6.1",
43+
"sockjs-client": "1.1.4",
4444
"stack-frame-mapper": "0.4.0",
4545
"stack-frame-parser": "0.4.0",
4646
"stack-frame-unmapper": "0.4.0",

packages/react-error-overlay/package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,26 @@
3030
"lib/"
3131
],
3232
"dependencies": {
33-
"anser": "^1.2.5",
34-
"babel-code-frame": "^6.22.0",
35-
"babel-runtime": "^6.23.0",
33+
"anser": "1.2.5",
34+
"babel-code-frame": "6.22.0",
35+
"babel-runtime": "6.23.0",
3636
"react-dev-utils": "^0.5.2",
37-
"settle-promise": "^1.0.0"
37+
"settle-promise": "1.0.0"
3838
},
3939
"devDependencies": {
40-
"babel-cli": "^6.24.1",
41-
"babel-eslint": "7.x",
40+
"babel-cli": "6.24.1",
41+
"babel-eslint": "7.2.3",
4242
"babel-preset-react-app": "^2.1.1",
43-
"cross-env": "^4.0.0",
44-
"eslint": "^3.16.1",
43+
"cross-env": "5.0.0",
44+
"eslint": "3.19.0",
4545
"eslint-config-react-app": "^0.6.1",
46-
"eslint-plugin-flowtype": "^2.21.0",
47-
"eslint-plugin-import": "^2.0.1",
48-
"eslint-plugin-jsx-a11y": "^5.0.0",
49-
"eslint-plugin-react": "^6.4.1",
50-
"flow-bin": "^0.46.0",
51-
"jest": "19.x",
52-
"jest-fetch-mock": "^1.1.1"
46+
"eslint-plugin-flowtype": "2.33.0",
47+
"eslint-plugin-import": "2.2.0",
48+
"eslint-plugin-jsx-a11y": "5.0.1",
49+
"eslint-plugin-react": "7.0.1",
50+
"flow-bin": "0.46.0",
51+
"jest": "19.0.2",
52+
"jest-fetch-mock": "1.1.1"
5353
},
5454
"jest": {
5555
"setupFiles": [

packages/react-scripts/config/env.js

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ var dotenvFiles = [
3434
dotenvFiles.forEach(dotenvFile => {
3535
if (fs.existsSync(dotenvFile)) {
3636
require('dotenv').config({
37-
silent: true,
3837
path: dotenvFile,
3938
});
4039
}

packages/react-scripts/package.json

+15-16
Original file line numberDiff line numberDiff line change
@@ -23,40 +23,39 @@
2323
"dependencies": {
2424
"@timer/detect-port": "1.1.2",
2525
"address": "1.0.1",
26-
"autoprefixer": "6.7.7",
27-
"babel-core": "6.23.1",
28-
"babel-eslint": "7.1.1",
26+
"autoprefixer": "7.1.0",
27+
"babel-core": "6.24.1",
28+
"babel-eslint": "7.2.3",
2929
"babel-jest": "19.0.0",
3030
"babel-loader": "7.0.0",
3131
"babel-preset-react-app": "^2.1.1",
32-
"babel-runtime": "^6.20.0",
33-
"case-sensitive-paths-webpack-plugin": "1.1.4",
32+
"babel-runtime": "6.23.0",
33+
"case-sensitive-paths-webpack-plugin": "2.0.0",
3434
"chalk": "1.1.3",
3535
"connect-history-api-fallback": "1.3.0",
3636
"cross-spawn": "4.0.2",
37-
"css-loader": "0.28.0",
38-
"dotenv": "2.0.0",
39-
"eslint": "3.16.1",
37+
"css-loader": "0.28.1",
38+
"dotenv": "4.0.0",
39+
"eslint": "3.19.0",
4040
"eslint-config-react-app": "^0.6.1",
4141
"eslint-loader": "1.7.1",
42-
"eslint-plugin-flowtype": "2.21.0",
43-
"eslint-plugin-import": "2.0.1",
42+
"eslint-plugin-flowtype": "2.33.0",
43+
"eslint-plugin-import": "2.2.0",
4444
"eslint-plugin-jsx-a11y": "5.0.1",
45-
"eslint-plugin-react": "6.4.1",
45+
"eslint-plugin-react": "7.0.1",
4646
"extract-text-webpack-plugin": "2.1.0",
4747
"file-loader": "0.11.1",
48-
"fs-extra": "0.30.0",
48+
"fs-extra": "3.0.1",
4949
"html-webpack-plugin": "2.28.0",
50-
"http-proxy-middleware": "0.17.3",
5150
"inquirer": "3.0.6",
5251
"jest": "19.0.2",
5352
"object-assign": "4.1.1",
54-
"postcss-flexbugs-fixes": "2.1.0",
55-
"postcss-loader": "1.3.3",
53+
"postcss-flexbugs-fixes": "3.0.0",
54+
"postcss-loader": "2.0.5",
5655
"promise": "7.1.1",
5756
"react-dev-utils": "^0.5.2",
5857
"react-error-overlay": "^0.0.0",
59-
"style-loader": "0.16.1",
58+
"style-loader": "0.17.0",
6059
"url-loader": "0.5.8",
6160
"webpack": "2.5.1",
6261
"webpack-dev-server": "2.4.5",

0 commit comments

Comments
 (0)