-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds lint tasks for js and ts using respectively eslint or tslint
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "lint", | ||
"description": "Lint source files", | ||
"flags": [ | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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")); | ||
} |