Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Switch to default mode
  • Loading branch information
Timer committed Feb 13, 2017
commit 4a472ca1149e6d2740b584c70914fa9f151e00ea
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

14 changes: 14 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "react-app",
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "default",
"ecmaFeatures": {
"jsx": false,
"generators": true
}
},
"rules": {
"strict": ["warn", "safe"]
}
}
1 change: 0 additions & 1 deletion packages/babel-preset-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

// eslint-disable-next-line
'use strict';

var path = require('path');
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-config-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// In the future, we might create a separate list of rules for production.
// It would probably be more strict.

'use strict';

module.exports = {
root: true,

Expand Down
2 changes: 1 addition & 1 deletion packages/react-dev-utils/InterpolateHtmlPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
// Learn more about creating plugins like this:
// https://github.com/ampedandwired/html-webpack-plugin#events

// eslint-disable-next-line
'use strict';

const escapeStringRegexp = require('escape-string-regexp');

class InterpolateHtmlPlugin {
Expand Down
1 change: 0 additions & 1 deletion packages/react-dev-utils/WatchMissingNodeModulesPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// We’re not sure why this isn't Webpack's default behavior.
// See https://github.com/facebookincubator/create-react-app/issues/186.

// eslint-disable-next-line
'use strict';

class WatchMissingNodeModulesPlugin {
Expand Down
2 changes: 2 additions & 0 deletions packages/react-dev-utils/checkRequiredFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

'use strict';

var fs = require('fs');
var path = require('path');
var chalk = require('chalk');
Expand Down
2 changes: 2 additions & 0 deletions packages/react-dev-utils/clearConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

'use strict';

function clearConsole() {
process.stdout.write(process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H');
}
Expand Down
2 changes: 2 additions & 0 deletions packages/react-dev-utils/formatWebpackMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// This is quite hacky and hopefully won't be needed when Webpack fixes this.
// https://github.com/webpack/webpack/issues/2878

'use strict';

var friendlySyntaxErrorLabel = 'Syntax error:';

function isLikelyASyntaxError(message) {
Expand Down
3 changes: 2 additions & 1 deletion packages/react-dev-utils/getProcessForPort.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var chalk = require('chalk');
var execSync = require('child_process').execSync;
var path = require('path');
Expand Down Expand Up @@ -58,4 +60,3 @@ function getProcessForPort(port) {
}

module.exports = getProcessForPort;

2 changes: 2 additions & 0 deletions packages/react-dev-utils/openBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

'use strict';

var execSync = require('child_process').execSync;
var opn = require('opn');

Expand Down
2 changes: 2 additions & 0 deletions packages/react-dev-utils/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

'use strict';

var rl = require('readline');

// Convention: "no" should be the conservative choice.
Expand Down
4 changes: 3 additions & 1 deletion packages/react-dev-utils/webpackHotDevClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
// that looks similar to our console output. The error overlay is inspired by:
// https://github.com/glenjamin/webpack-hot-middleware

'use strict';

var ansiHTML = require('ansi-html');
var SockJS = require('sockjs-client');
var stripAnsi = require('strip-ansi');
Expand Down Expand Up @@ -123,7 +125,7 @@ function showErrorOverlay(message) {
});
}

function destroyErrorOverlay() {
function destroyErrorOverlay() {
if (!overlayDiv) {
// It is not there in the first place.
return;
Expand Down
1 change: 0 additions & 1 deletion tasks/replace-own-deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

// eslint-disable-next-line
'use strict';

// Replaces internal dependencies in package.json with local package paths.
Expand Down