Add linting for tests

This commit is contained in:
Blade Barringer
2015-11-17 23:14:49 -06:00
parent 94bf181301
commit 553548046f
3 changed files with 32 additions and 3 deletions

View File

@@ -34,4 +34,21 @@ gulp.task('lint:common', () => {
.pipe(eslint.failAfterError());
});
gulp.task('lint:tests', () => {
return gulp
.src([
'./test/**/*.js',
// @TODO remove these negations as the test files are cleaned up.
'!./test/api-legacy/**/*',
'!./test/common/**/*',
'!./test/content/**/*',
'!./test/e2e/**/*',
'!./test/server_side/**/*',
'!./test/spec/**/*',
])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});
gulp.task('lint', ['lint:server', 'lint:common']);