Skip to content

Commit 6f412bb

Browse files
alfaprojectvsavkin
authored andcommitted
chore(lint): extend linting to all modules and tools
1 parent e9fd864 commit 6f412bb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

gulpfile.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,23 @@ gulp.task('public-api:update', ['build.sh'], (done) => {
129129
gulp.task('lint', ['format:enforce', 'tools:build'], () => {
130130
const tslint = require('gulp-tslint');
131131
// Built-in rules are at
132-
// https://github.com/palantir/tslint#supported-rules
132+
// https://palantir.github.io/tslint/rules/
133133
const tslintConfig = require('./tslint.json');
134134
return gulp
135135
.src([
136136
// todo(vicb): add .js files when supported
137137
// see https://github.com/palantir/tslint/pull/1515
138-
'modules/@angular/**/*.ts',
139-
'modules/benchpress/**/*.ts',
138+
'./modules/**/*.ts',
139+
'./tools/**/*.ts',
140140
'./*.ts',
141+
142+
// Ignore TypeScript mocks because it's not managed by us
143+
'!./tools/@angular/tsc-wrapped/test/typescript.mocks.ts',
144+
145+
// Ignore generated files due to lack of copyright header
146+
// todo(alfaproject): make generated files lintable
147+
'!**/*.d.ts',
148+
'!**/*.ngfactory.ts',
141149
])
142150
.pipe(tslint({
143151
tslint: require('tslint').default,

0 commit comments

Comments
 (0)