mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 13:39:06 +01:00
add 'format' script to use autofix w/ tslint
This commit is contained in:
parent
20a00cda98
commit
c31f778746
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({
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
"clean": "gulp clean",
|
||||
"cleanall": "gulp cleanall",
|
||||
"lint": "gulp lint",
|
||||
"test": "gulp test"
|
||||
"test": "gulp test",
|
||||
"format": "gulp format"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bcryptjs": "2.4.1",
|
||||
|
|
Loading…
Reference in a new issue