Skip to content

Commit c693db9

Browse files
committed
refactor(@embark/embark-ui) remove usage of use strict
1 parent 9e7bc53 commit c693db9

File tree

10 files changed

+3
-23
lines changed

10 files changed

+3
-23
lines changed

embark-ui/config/env.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const fs = require('fs');
42
const path = require('path');
53
const paths = require('./paths');

embark-ui/config/jest/cssTransform.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
// This is a custom Jest transformer turning style imports into empty objects.
42
// http://facebook.github.io/jest/docs/en/webpack.html
53

embark-ui/config/jest/fileTransform.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const path = require('path');
42

53
// This is a custom Jest transformer turning file imports into filenames.

embark-ui/config/paths.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const path = require('path');
42
const fs = require('fs');
53
const url = require('url');

embark-ui/config/webpack.config.dev.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const fs = require('fs');
42
const path = require('path');
53
const resolve = require('resolve');

embark-ui/config/webpack.config.prod.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const fs = require('fs');
42
const path = require('path');
53
const webpack = require('webpack');
@@ -261,7 +259,7 @@ module.exports = {
261259
options: {
262260
formatter: require.resolve('react-dev-utils/eslintFormatter'),
263261
eslintPath: require.resolve('eslint'),
264-
262+
265263
},
266264
loader: require.resolve('eslint-loader'),
267265
},
@@ -294,7 +292,7 @@ module.exports = {
294292
customize: require.resolve(
295293
'babel-preset-react-app/webpack-overrides'
296294
),
297-
295+
298296
plugins: [
299297
[
300298
require.resolve('babel-plugin-named-asset-import'),
@@ -332,7 +330,7 @@ module.exports = {
332330
cacheDirectory: true,
333331
// Save disk space when time isn't as important
334332
cacheCompression: true,
335-
333+
336334
// If an error happens in a package, it's possible to be
337335
// because it was compiled. Thus, we don't want the browser
338336
// debugger to show the original code. Instead, the code

embark-ui/config/webpackDevServer.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
42
const evalSourceMapMiddleware = require('react-dev-utils/evalSourceMapMiddleware');
53
const noopServiceWorkerMiddleware = require('react-dev-utils/noopServiceWorkerMiddleware');

embark-ui/scripts/build.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
// Do this as the first thing so that any code reading it knows the right env.
42
process.env.BABEL_ENV = 'production';
53
process.env.NODE_ENV = 'production';

embark-ui/scripts/start.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
// Do this as the first thing so that any code reading it knows the right env.
42
process.env.BABEL_ENV = 'development';
53
process.env.NODE_ENV = 'development';

embark-ui/scripts/test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
// Do this as the first thing so that any code reading it knows the right env.
42
process.env.BABEL_ENV = 'test';
53
process.env.NODE_ENV = 'test';

0 commit comments

Comments
 (0)