Move test specific eslint rules to eslint task

This commit is contained in:
Blade Barringer
2015-11-18 08:50:03 -06:00
parent f94394127a
commit 22c8a24d15
2 changed files with 13 additions and 11 deletions

View File

@@ -46,7 +46,18 @@ gulp.task('lint:tests', () => {
'!./test/server_side/**/*',
'!./test/spec/**/*',
])
.pipe(eslint())
.pipe(eslint({
rules: {
'no-unused-expressions': 0,
'mocha/no-exclusive-tests': 2,
'mocha/no-global-tests': 2,
'mocha/handle-done-callback': 2,
},
globals: {
'expect': true,
},
plugins: [ 'mocha' ],
}))
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});