Skip to content

Commit ac97126

Browse files
committed
Adding use_strict everywhere
1 parent 7b1991b commit ac97126

19 files changed

+37
-0
lines changed

bin/encore.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env node
2+
'use strict';
23

34
const path = require('path');
45
const parseRuntime = require('../lib/config/parse-runtime');

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const WebpackConfig = require('./lib/WebpackConfig');
24
const configGenerator = require('./lib/config-generator');
35
const validator = require('./lib/config/validator');

lib/DeleteUnusedEntriesJSPlugin.js

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

35
function DeleteUnusedEntriesJSPlugin(entriesToDelete = []) {

lib/WebpackConfig.js

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

lib/config-generator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const webpack = require('webpack');
24
const ExtractTextPlugin = require('extract-text-webpack-plugin');
35
const ManifestPlugin = require('./webpack-manifest-plugin');

lib/config/RuntimeConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
class RuntimeConfig {
24
constructor() {
35
this.command = null;

lib/config/parse-runtime.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const RuntimeConfig = require('./RuntimeConfig');
24
const chalk = require('chalk');
35
const pkgUp = require('pkg-up');

lib/config/validator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
class Validator {
24
/**
35
* @param {WebpackConfig} webpackConfig

lib/context.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
/**
24
* Stores the current RuntimeConfig created by the encore executable.
35
*/

lib/friendly-errors/formatters/missing-loader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const chalk = require('chalk');
24
const loaderFeatures = require('../../loader-features');
35
const packageHelper = require('../../package-helper');

lib/friendly-errors/transformers/missing-loader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const TYPE = 'loader-not-enabled';
24

35
function isMissingLoaderError(e) {

lib/loader-features.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const packageHelper = require('./package-helper');
24

35
/**

lib/package-helper.js

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

35
function ensurePackagesExist(packageNames, requestedFeature) {

lib/test/assert.js

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

test/WebpackConfig.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const expect = require('chai').expect;
24
const WebpackConfig = require('../lib/WebpackConfig');
35
const RuntimeConfig = require('../lib/config/RuntimeConfig');

test/config-generator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const expect = require('chai').expect;
24
const WebpackConfig = require('../lib/WebpackConfig');
35
const RuntimeConfig = require('../lib/config/RuntimeConfig');

test/config/validator.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const expect = require('chai').expect;
24
const WebpackConfig = require('../../lib/WebpackConfig');
35
const RuntimeConfig = require('../../lib/config/RuntimeConfig');

test/friendly-errors/formatters/missing-loader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const expect = require('chai').expect;
24
const formatter = require('../../../lib/friendly-errors/formatters/missing-loader');
35

test/friendly-errors/transformers/missing-loader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
const expect = require('chai').expect;
24
const transform = require('../../../lib/friendly-errors/transformers/missing-loader');
35

0 commit comments

Comments
 (0)