From 6f412bb44965a4e21fc06a5e04fcda70c9fc61e2 Mon Sep 17 00:00:00 2001 From: Joao Dias Date: Sun, 23 Oct 2016 22:35:53 +0200 Subject: [PATCH] chore(lint): extend linting to all modules and tools --- gulpfile.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 2abcc0c528..ff2c446ae0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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,