Skip to content

Commit 4a472ca

Browse files
committed
Switch to default mode
1 parent 8e1e224 commit 4a472ca

File tree

14 files changed

+32
-9
lines changed

14 files changed

+32
-9
lines changed

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "react-app",
3+
"parserOptions": {
4+
"ecmaVersion": 5,
5+
"sourceType": "default",
6+
"ecmaFeatures": {
7+
"jsx": false,
8+
"generators": true
9+
}
10+
},
11+
"rules": {
12+
"strict": ["warn", "safe"]
13+
}
14+
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10-
// eslint-disable-next-line
1110
'use strict';
1211

1312
var path = require('path');

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// In the future, we might create a separate list of rules for production.
1717
// It would probably be more strict.
1818

19+
'use strict';
20+
1921
module.exports = {
2022
root: true,
2123

packages/react-dev-utils/InterpolateHtmlPlugin.js

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

18-
// eslint-disable-next-line
1918
'use strict';
19+
2020
const escapeStringRegexp = require('escape-string-regexp');
2121

2222
class InterpolateHtmlPlugin {

packages/react-dev-utils/WatchMissingNodeModulesPlugin.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
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
1514
'use strict';
1615

1716
class WatchMissingNodeModulesPlugin {

packages/react-dev-utils/checkRequiredFiles.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10+
'use strict';
11+
1012
var fs = require('fs');
1113
var path = require('path');
1214
var chalk = require('chalk');

packages/react-dev-utils/clearConsole.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10+
'use strict';
11+
1012
function clearConsole() {
1113
process.stdout.write(process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H');
1214
}

packages/react-dev-utils/formatWebpackMessages.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// This is quite hacky and hopefully won't be needed when Webpack fixes this.
1515
// https://github.com/webpack/webpack/issues/2878
1616

17+
'use strict';
18+
1719
var friendlySyntaxErrorLabel = 'Syntax error:';
1820

1921
function isLikelyASyntaxError(message) {

packages/react-dev-utils/getProcessForPort.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var chalk = require('chalk');
24
var execSync = require('child_process').execSync;
35
var path = require('path');
@@ -58,4 +60,3 @@ function getProcessForPort(port) {
5860
}
5961

6062
module.exports = getProcessForPort;
61-

packages/react-dev-utils/openBrowser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10+
'use strict';
11+
1012
var execSync = require('child_process').execSync;
1113
var opn = require('opn');
1214

packages/react-dev-utils/prompt.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* of patent rights can be found in the PATENTS file in the same directory.
88
*/
99

10+
'use strict';
11+
1012
var rl = require('readline');
1113

1214
// Convention: "no" should be the conservative choice.

packages/react-dev-utils/webpackHotDevClient.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
// that looks similar to our console output. The error overlay is inspired by:
1717
// https://github.com/glenjamin/webpack-hot-middleware
1818

19+
'use strict';
20+
1921
var ansiHTML = require('ansi-html');
2022
var SockJS = require('sockjs-client');
2123
var stripAnsi = require('strip-ansi');
@@ -123,7 +125,7 @@ function showErrorOverlay(message) {
123125
});
124126
}
125127

126-
function destroyErrorOverlay() {
128+
function destroyErrorOverlay() {
127129
if (!overlayDiv) {
128130
// It is not there in the first place.
129131
return;

tasks/replace-own-deps.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* of patent rights can be found in the PATENTS file in the same directory.
99
*/
1010

11-
// eslint-disable-next-line
1211
'use strict';
1312

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

0 commit comments

Comments
 (0)