Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 138fb63

Browse files
committed
Fix eslint findings
1 parent 00eea07 commit 138fb63

File tree

5 files changed

+3
-13
lines changed

5 files changed

+3
-13
lines changed

packages/react-scripts/config/jest/typescriptTransform.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright 2004-present Facebook. All Rights Reserved.
22

3+
'use strict';
4+
35
const fs = require('fs');
46
const tsc = require('typescript');
57
const tsconfigPath = require('app-root-path').resolve('/tsconfig.json');

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeMod
1919
var getClientEnvironment = require('./env');
2020
var paths = require('./paths');
2121

22-
// @remove-on-eject-begin
23-
// `path` is not used after eject - see https://github.com/facebookincubator/create-react-app/issues/1174
24-
var path = require('path');
25-
// @remove-on-eject-end
26-
2722
// Webpack uses `publicPath` to determine where the app is being served from.
2823
// In development, we always serve from the root. This makes config easier.
2924
var publicPath = '/';

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ var InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
1919
var paths = require('./paths');
2020
var getClientEnvironment = require('./env');
2121

22-
// @remove-on-eject-begin
23-
// `path` is not used after eject - see https://github.com/facebookincubator/create-react-app/issues/1174
24-
var path = require('path');
25-
// @remove-on-eject-end
26-
2722
// Webpack uses `publicPath` to determine where the app is being served from.
2823
// It requires a trailing slash, or the file assets will get an incorrect path.
2924
var publicPath = paths.servedPath;

packages/react-scripts/scripts/build.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ var FileSizeReporter = require('react-dev-utils/FileSizeReporter');
3131
var measureFileSizesBeforeBuild = FileSizeReporter.measureFileSizesBeforeBuild;
3232
var printFileSizesAfterBuild = FileSizeReporter.printFileSizesAfterBuild;
3333

34-
var recursive = require('recursive-readdir');
35-
var stripAnsi = require('strip-ansi');
3634
var { highlight } = require('cli-highlight');
3735

3836
var useYarn = fs.existsSync(paths.yarnLockFile);

packages/react-scripts/utils/createJestConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
const fs = require('fs');
1515
const paths = require('../config/paths');
1616

17-
module.exports = (resolve, rootDir, isEjecting) => {
17+
module.exports = (resolve, rootDir) => {
1818
// Use this instead of `paths.testsSetup` to avoid putting
1919
// an absolute filename into configuration after ejecting.
2020
const setupTestsFile = fs.existsSync(paths.testsSetup) ? '<rootDir>/src/setupTests.ts' : undefined;

0 commit comments

Comments
 (0)