enable linting during test dev

This commit is contained in:
Evan You 2016-04-29 20:08:42 -04:00
parent 3aa7503472
commit cdab583dfa

View File

@ -1,6 +1,15 @@
var base = require('./karma.base.config.js')
module.exports = function (config) {
// enable linting during dev
base.webpack.module.preLoaders = [
{
test: /\.js$/,
loader: 'eslint',
exclude: /node_modules/
}
]
config.set(Object.assign(base, {
browsers: ['Chrome'],
reporters: ['progress']