Skip to content

Commit

Permalink
chore(lint): extend linting to all modules and tools
Browse files Browse the repository at this point in the history
  • Loading branch information
alfaproject authored and vsavkin committed Oct 31, 2016
1 parent e9fd864 commit 6f412bb
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,23 @@ gulp.task('public-api:update', ['build.sh'], (done) => {
gulp.task('lint', ['format:enforce', 'tools:build'], () => {
const tslint = require('gulp-tslint');
// Built-in rules are at
// https://github.com/palantir/tslint#supported-rules
// https://palantir.github.io/tslint/rules/
const tslintConfig = require('./tslint.json');
return gulp
.src([
// todo(vicb): add .js files when supported
// see https://github.com/palantir/tslint/pull/1515
'modules/@angular/**/*.ts',
'modules/benchpress/**/*.ts',
'./modules/**/*.ts',
'./tools/**/*.ts',
'./*.ts',

// Ignore TypeScript mocks because it's not managed by us
'!./tools/@angular/tsc-wrapped/test/typescript.mocks.ts',

// Ignore generated files due to lack of copyright header
// todo(alfaproject): make generated files lintable
'!**/*.d.ts',
'!**/*.ngfactory.ts',
])
.pipe(tslint({
tslint: require('tslint').default,
Expand Down

0 comments on commit 6f412bb

Please sign in to comment.