Browse Source

Silence eslint

main
Marian Steinbach 10 months ago
parent
commit
8b6e92248e
  1. 2
      config/env.js
  2. 2
      config/jest/cssTransform.js
  3. 2
      config/jest/fileTransform.js
  4. 2
      config/paths.js
  5. 2
      config/polyfills.js
  6. 6
      config/webpack.config.prod.js
  7. 2
      config/webpackDevServer.config.js
  8. 2
      scripts/build.js
  9. 2
      scripts/start.js
  10. 2
      scripts/test.js

2
config/env.js

@ -1,5 +1,3 @@
'use strict';
const fs = require('fs');
const path = require('path');
const paths = require('./paths');

2
config/jest/cssTransform.js

@ -1,5 +1,3 @@
'use strict';
// This is a custom Jest transformer turning style imports into empty objects.
// http://facebook.github.io/jest/docs/en/webpack.html

2
config/jest/fileTransform.js

@ -1,5 +1,3 @@
'use strict';
const path = require('path');
// This is a custom Jest transformer turning file imports into filenames.

2
config/paths.js

@ -1,5 +1,3 @@
'use strict';
const path = require('path');
const fs = require('fs');
const url = require('url');

2
config/polyfills.js

@ -1,5 +1,3 @@
'use strict';
if (typeof Promise === 'undefined') {
// Rejection tracking prevents a common issue where React gets into an
// inconsistent state due to an error, but it gets swallowed by a Promise,

6
config/webpack.config.prod.js

@ -1,5 +1,3 @@
'use strict';
//const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
@ -15,9 +13,7 @@ const getClientEnvironment = require('./env');
// Webpack uses `publicPath` to determine where the app is being served from.
// It requires a trailing slash, or the file assets will get an incorrect path.
const publicPath = paths.servedPath;
// Some apps do not use client-side routing with pushState.
// For these, "homepage" can be set to "." to enable relative asset paths.
const shouldUseRelativeAssetPaths = publicPath === './';
// Source maps are resource heavy and can cause out of memory issue for large source files.
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
// `publicUrl` is just like `publicPath`, but we will provide it to our app

2
config/webpackDevServer.config.js

@ -1,5 +1,3 @@
'use strict';
const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
const noopServiceWorkerMiddleware = require('react-dev-utils/noopServiceWorkerMiddleware');
const ignoredFiles = require('react-dev-utils/ignoredFiles');

2
scripts/build.js

@ -1,5 +1,3 @@
'use strict';
// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'production';
process.env.NODE_ENV = 'production';

2
scripts/start.js

@ -1,5 +1,3 @@
'use strict';
// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'development';
process.env.NODE_ENV = 'development';

2
scripts/test.js

@ -1,5 +1,3 @@
'use strict';
// Do this as the first thing so that any code reading it knows the right env.
process.env.BABEL_ENV = 'test';
process.env.NODE_ENV = 'test';

Loading…
Cancel
Save