add 'format' script to use autofix w/ tslint
This commit is contained in:
parent
3ec29fec6b
commit
f80283a94f
3 changed files with 13 additions and 3 deletions
|
@ -81,6 +81,15 @@ gulp.task('lint', () =>
|
|||
.pipe(tslint.report())
|
||||
);
|
||||
|
||||
gulp.task('format', () =>
|
||||
gulp.src('./src/**/*.ts')
|
||||
.pipe(tslint({
|
||||
formatter: 'verbose',
|
||||
fix: true
|
||||
}))
|
||||
.pipe(tslint.report())
|
||||
);
|
||||
|
||||
gulp.task('mocha', () =>
|
||||
gulp.src([])
|
||||
.pipe(mocha({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue