Skip to content

Commit 8e1e224

Browse files
committed
Bump deps, treat warnings as failures, and fix linter problems
1 parent 0e8b159 commit 8e1e224

File tree

11 files changed

+14
-8
lines changed

11 files changed

+14
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
"devDependencies": {
1414
"babel-eslint": "^7.1.1",
1515
"eslint": "^3.15.0",
16-
"eslint-config-react-app": "0.5.1",
16+
"eslint-config-react-app": "^0.5.1",
1717
"eslint-plugin-flowtype": "^2.30.0",
1818
"eslint-plugin-import": "^2.2.0",
19-
"eslint-plugin-jsx-a11y": "2.2.3",
19+
"eslint-plugin-jsx-a11y": "^2.2.3",
2020
"eslint-plugin-react": "^6.9.0",
2121
"lerna": "^2.0.0-beta.37",
2222
"lerna-changelog": "^0.2.3"

packages/babel-preset-react-app/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree. An additional grant
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
9+
10+
// eslint-disable-next-line
911
'use strict';
1012

1113
var path = require('path');

packages/create-react-app/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
// /!\ DO NOT MODIFY THIS FILE /!\
3737
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3838

39+
// eslint-disable-next-line
3940
'use strict';
4041

4142
var chalk = require('chalk');

packages/react-dev-utils/InterpolateHtmlPlugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// Learn more about creating plugins like this:
1616
// https://github.com/ampedandwired/html-webpack-plugin#events
1717

18+
// eslint-disable-next-line
1819
'use strict';
1920
const escapeStringRegexp = require('escape-string-regexp');
2021

packages/react-dev-utils/WatchMissingNodeModulesPlugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// We’re not sure why this isn't Webpack's default behavior.
1212
// See https://github.com/facebookincubator/create-react-app/issues/186.
1313

14+
// eslint-disable-next-line
1415
'use strict';
1516

1617
class WatchMissingNodeModulesPlugin {

packages/react-dev-utils/formatWebpackMessages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function formatMessage(message) {
106106
// from user code generated by WebPack. For more information see
107107
// https://github.com/facebookincubator/create-react-app/pull/1050
108108
message = message.replace(
109-
/^\s*at\s((?!webpack:).)*:\d+:\d+[\s\)]*(\n|$)/gm, ''
109+
/^\s*at\s((?!webpack:).)*:\d+:\d+[\s)]*(\n|$)/gm, ''
110110
); // at ... ...:x:y
111111

112112
return message;

packages/react-scripts/bin/react-scripts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ case 'test':
1414
{stdio: 'inherit'}
1515
);
1616
if (result.signal) {
17-
if (result.signal == 'SIGKILL') {
17+
if (result.signal === 'SIGKILL') {
1818
console.log(
1919
'The build failed because the process exited too early. ' +
2020
'This probably means the system ran out of memory or someone called ' +
2121
'`kill -9` on the process.'
2222
);
23-
} else if (result.signal == 'SIGTERM') {
23+
} else if (result.signal === 'SIGTERM') {
2424
console.log(
2525
'The build failed because the process exited too early. ' +
2626
'Someone might have called `kill` or `killall`, or the system could ' +

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
1515
var ExtractTextPlugin = require('extract-text-webpack-plugin');
1616
var ManifestPlugin = require('webpack-manifest-plugin');
1717
var InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
18-
var url = require('url');
1918
var paths = require('./paths');
2019
var getClientEnvironment = require('./env');
2120

packages/react-scripts/fixtures/kitchensink/integration/initDOM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (process.env.E2E_FILE) {
1515
const markup = fs.readFileSync(file, 'utf8')
1616
getMarkup = () => markup
1717

18-
const pathPrefix = process.env.PUBLIC_URL.replace(/^https?:\/\/[^\/]+\/?/, '')
18+
const pathPrefix = process.env.PUBLIC_URL.replace(/^https?:\/\/[^/]+\/?/, '')
1919

2020
resourceLoader = (resource, callback) => callback(
2121
null,

tasks/e2e-simple.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ then
8383
fi
8484

8585
# Lint own code
86-
./node_modules/.bin/eslint --ignore-path .gitignore ./
86+
./node_modules/.bin/eslint --max-warnings 0 --ignore-path .gitignore ./
8787

8888
# ******************************************************************************
8989
# First, test the create-react-app development environment.

tasks/replace-own-deps.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* LICENSE file in the root directory of this source tree. An additional grant
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
10+
11+
// eslint-disable-next-line
1012
'use strict';
1113

1214
// Replaces internal dependencies in package.json with local package paths.

0 commit comments

Comments
 (0)