Permalink
Browse files

feat(tasks): add lint tasks

adds lint tasks for js and ts using respectively eslint or tslint
  • Loading branch information...
zewa666 committed Aug 24, 2017
1 parent 3568886 commit 596442a4399c4a654347f9f63ca04c4f916a56aa
Showing with 27 additions and 0 deletions.
  1. +10 −0 lib/resources/tasks/lint.js
  2. +6 −0 lib/resources/tasks/lint.json
  3. +11 −0 lib/resources/tasks/lint.ts
@@ -0,0 +1,10 @@
import gulp from 'gulp';
import eslint from 'gulp-eslint';
import project from '../aurelia.json';
export default function lint() {
return gulp.src([project.transpiler.source])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
}
@@ -0,0 +1,6 @@
{
"name": "lint",
"description": "Lint source files",
"flags": [
]
}
@@ -0,0 +1,11 @@
import * as gulp from 'gulp';
import tslint from 'gulp-tslint';
import * as project from '../aurelia.json';
export default function lint() {
return gulp.src([project.transpiler.source])
.pipe(tslint({
tslint: require("tslint")
}))
.pipe(tslint.report("prose"));
}

0 comments on commit 596442a

Please sign in to comment.