Skip to content

Commit 893ca6f

Browse files
author
benholloway
committed
oops, reinstate jshint directives
1 parent cdfa650 commit 893ca6f

File tree

8 files changed

+9
-6
lines changed

8 files changed

+9
-6
lines changed

config/add/browser-sync.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
'use strict';
22

3-
var path = require('path');
4-
5-
var glob = require('glob'),
6-
BrowserSyncPlugin = require('browser-sync-webpack-plugin');
3+
var BrowserSyncPlugin = require('browser-sync-webpack-plugin');
74

85
/**
96
* Add browser-sync server for Webpack `--watch`.
@@ -13,6 +10,7 @@ var glob = require('glob'),
1310
* @returns {Config} The given webpack-configurator instance
1411
*/
1512
function browserSync(directory, port) {
13+
/* jshint validthis:true */
1614
return this
1715
.plugin('browser-sync', BrowserSyncPlugin, [{
1816
host : 'localhost',

config/add/clean.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var CleanPlugin = require('clean-webpack-plugin');
99
* @returns {Config} The given webpack-configurator instance
1010
*/
1111
function clean(directory) {
12+
/* jshint validthis:true */
1213
return this
1314
.plugin('clean', CleanPlugin, [
1415
directory,

config/add/common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ function common(loaderRoot, options) {
2222
// you need to add it yourself if you wish to use it
2323
// https://github.com/webpack/karma-webpack/issues/41#issuecomment-139516692
2424

25+
/* jshint validthis:true */
2526
return this
2627
.merge({
2728
context : process.cwd(),

config/add/composition.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
var path = require('path');
4-
53
var IndexHTMLPlugin = require('indexhtml-webpack-plugin'),
64
GulpInjectPlugin = require('gulp-inject-webpack-plugin');
75

@@ -12,6 +10,7 @@ var IndexHTMLPlugin = require('indexhtml-webpack-plugin'),
1210
* @returns {Config} The given webpack-configurator instance
1311
*/
1412
function composition(item) {
13+
/* jshint validthis:true */
1514
return this
1615
.merge({
1716
name : ['app'].concat(item.namespace).join(':'),

config/add/conditionals.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var webpack = require('webpack');
99
* @returns {Config} The given webpack-configurator instance
1010
*/
1111
function conditionals(flags) {
12+
/* jshint validthis:true */
1213
return this
1314
.plugin('conditionals', webpack.ProvidePlugin, [flags]);
1415
}

config/add/external-chunk-manifest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var ChunkManifestPlugin = require('chunk-manifest-webpack-plugin');
99
* @returns {Config} The given webpack-configurator instance
1010
*/
1111
function externalChunkManifest() {
12+
/* jshint validthis:true */
1213
return this
1314
.plugin('chunk-manifest', ChunkManifestPlugin);
1415
}

config/add/minification.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var ESManglePlugin = require('esmangle-webpack-plugin');
99
* @returns {Config} The given webpack-configurator instance
1010
*/
1111
function minification(enabled) {
12+
/* jshint validthis:true */
1213
if (enabled) {
1314
this
1415
.plugin('minification', ESManglePlugin, [

config/add/test-suite-generation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ var EntryGeneratorPlugin = require('entry-generator-webpack-plugin');
1010
* @returns {Config} The given webpack-configurator instance
1111
*/
1212
function testSuiteGeneration(outputFile, testGlob) {
13+
/* jshint validthis:true */
1314
return this
1415
.plugin('generate-test', EntryGeneratorPlugin, [
1516
outputFile,

0 commit comments

Comments
 (0)