
With this commit `ngc` is used instead of `tsc-wrapped` for collecting metadata and tsickle rewriting and `tsc-wrapped` is removed from the repository. `@angular/tsc-wrapped@5` is now deprecated and is no longer used, updated, or maintained as part as of Angular 5.x.x. `@angular/tsc-wrapped@4` is still maintained and required by Angular 4.x.x and will be maintained as long as 4.x.x is in LTS. PR Close #19298
31 lines
950 B
JavaScript
31 lines
950 B
JavaScript
// Check the coding standards and programming errors
|
|
module.exports = (gulp) => () => {
|
|
const tslint = require('gulp-tslint');
|
|
// Built-in rules are at
|
|
// 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/**/*.ts',
|
|
'./packages/**/*.ts',
|
|
'./tools/**/*.ts',
|
|
'./*.ts',
|
|
|
|
// Ignore node_modules directories
|
|
'!**/node_modules/**',
|
|
|
|
// 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,
|
|
configuration: tslintConfig,
|
|
formatter: 'prose',
|
|
}))
|
|
.pipe(tslint.report({emitError: true}));
|
|
};
|