File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed
Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ import gulp from 'gulp' ;
2+ import eslint from 'gulp-eslint' ;
3+ import project from '../aurelia.json' ;
4+
5+ export default function lint ( ) {
6+ return gulp . src ( [ project . transpiler . source ] )
7+ . pipe ( eslint ( ) )
8+ . pipe ( eslint . format ( ) )
9+ . pipe ( eslint . failAfterError ( ) ) ;
10+ }
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " lint" ,
3+ "description" : " Lint source files" ,
4+ "flags" : [
5+ ]
6+ }
Original file line number Diff line number Diff line change 1+ import * as gulp from 'gulp' ;
2+ import tslint from 'gulp-tslint' ;
3+ import * as project from '../aurelia.json' ;
4+
5+ export default function lint ( ) {
6+ return gulp . src ( [ project . transpiler . source ] )
7+ . pipe ( tslint ( {
8+ tslint : require ( "tslint" )
9+ } ) )
10+ . pipe ( tslint . report ( "prose" ) ) ;
11+ }
You can’t perform that action at this time.
0 commit comments