refactor(@embark/embark-ui) remove usage of use strict

This commit is contained in:
Iuri Matias 2018-12-24 15:19:38 -05:00
parent 9e7bc53ebf
commit c693db9c2e
10 changed files with 3 additions and 23 deletions

View File

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

View File

@ -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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,3 @@
'use strict';
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
@ -261,7 +259,7 @@ module.exports = {
options: {
formatter: require.resolve('react-dev-utils/eslintFormatter'),
eslintPath: require.resolve('eslint'),
},
loader: require.resolve('eslint-loader'),
},
@ -294,7 +292,7 @@ module.exports = {
customize: require.resolve(
'babel-preset-react-app/webpack-overrides'
),
plugins: [
[
require.resolve('babel-plugin-named-asset-import'),
@ -332,7 +330,7 @@ module.exports = {
cacheDirectory: true,
// Save disk space when time isn't as important
cacheCompression: true,
// If an error happens in a package, it's possible to be
// because it was compiled. Thus, we don't want the browser
// debugger to show the original code. Instead, the code

View File

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

View File

@ -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';

View File

@ -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';

View File

@ -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';