Skip to content

Commit

Permalink
Set karma.conf.js to use strict mode #35
Browse files Browse the repository at this point in the history
  • Loading branch information
sthzg committed Jul 11, 2016
1 parent 730576c commit 0b6f953
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf/webpack/Base.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* Webpack configuration base class
*/
Expand Down
2 changes: 2 additions & 0 deletions conf/webpack/Dev.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* Default dev server configuration.
*/
Expand Down
2 changes: 2 additions & 0 deletions conf/webpack/Dist.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* Dist configuration. Used to build the
* final output when running npm run dist.
Expand Down
2 changes: 2 additions & 0 deletions conf/webpack/Test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/**
* Default test configuration.
*/
Expand Down
2 changes: 2 additions & 0 deletions conf/webpack/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const dev = require('./Dev');
const dist = require('./Dist');
const test = require('./Test');
Expand Down
2 changes: 2 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const webpackCfg = require('./webpack.config')('test');

module.exports = function karmaConfig(config) {
Expand Down
2 changes: 2 additions & 0 deletions test/loadtests.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

// Add support for Promise objects via polyfills
import 'babel-polyfill';

Expand Down
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

/* eslint no-console: "off" */
const webpackConfigs = require('./conf/webpack');
const defaultConfig = 'dev';
Expand Down

0 comments on commit 0b6f953

Please sign in to comment.