Skip to content

Commit

Permalink
build: add tslint formatting task (#4109)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisbeto authored and kara committed Apr 18, 2017
1 parent f7c45b2 commit 4bfd2a3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/gulp/tasks/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ gulp.task('dashboardlint', execNodeTask(
'--syntax', 'scss']
));

const tsLintBaseFlags = ['-c', 'tslint.json', '+(src|e2e|tools)/**/*.ts', '--exclude',
'**/node_modules/**/*'];

/** Task to run TSLint against the e2e/ and src/ directories. */
gulp.task('tslint', execNodeTask('tslint', ['-c', 'tslint.json', '+(src|e2e|tools)/**/*.ts',
'--exclude', '**/node_modules/**/*']));
gulp.task('tslint', execNodeTask('tslint', tsLintBaseFlags));

/** Task that automatically fixes TSLint warnings. */
gulp.task('tslint:fix', execNodeTask('tslint', [...tsLintBaseFlags, '--fix']));

0 comments on commit 4bfd2a3

Please sign in to comment.