Skip to content

Commit 4e86052

Browse files
alan-agius4clydin
authored andcommitted
refactor(@angular-devkit/build-angular): deprecate tslint builder
1 parent fed47b0 commit 4e86052

File tree

1 file changed

+6
-0
lines changed
  • packages/angular_devkit/build_angular/src/tslint

1 file changed

+6
-0
lines changed

packages/angular_devkit/build_angular/src/tslint/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ async function _run(
2626
options: TslintBuilderOptions,
2727
context: BuilderContext,
2828
): Promise<BuilderOutput> {
29+
context.logger.warn(
30+
`TSLint's support is discontinued and we're deprecating its support in Angular CLI.\n` +
31+
'To opt-in using the community driven ESLint builder, see: https://github.com/angular-eslint/angular-eslint#migrating-from-codelyzer-and-tslint.',
32+
);
33+
2934
const systemRoot = context.workspaceRoot;
3035
process.chdir(context.currentDirectory);
3136
const projectName = (context.target && context.target.project) || '<???>';
@@ -134,6 +139,7 @@ async function _run(
134139
}
135140

136141

142+
/** @deprecated since version 11 as part of the TSLint deprecation. */
137143
export default createBuilder<TslintBuilderOptions>(_run);
138144

139145

0 commit comments

Comments
 (0)