From c5b66abb9d9fa1831e7fe90cb7d68a7733d1d883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Jona=C5=A1?= Date: Fri, 10 Dec 2021 12:27:00 +0100 Subject: [PATCH] fix(linter): improve error message when attempting to use deprecated tslint (#8090) --- e2e/linter/src/linter.test.ts | 2 +- packages/linter/src/executors/lint/lint.impl.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/linter/src/linter.test.ts b/e2e/linter/src/linter.test.ts index 222290b9ee..e453449017 100644 --- a/e2e/linter/src/linter.test.ts +++ b/e2e/linter/src/linter.test.ts @@ -79,7 +79,7 @@ describe('Linter', () => { return config; }); expect(() => runCLI(`lint ${myapp} --linter=tslint`)).toThrow( - /"@nrwl\/linter:lint" was deprecated in v10 and is no longer supported\. Update your angular\.json to use "@nrwl\/linter:eslint" builder instead\./ + /"@nrwl\/linter:lint" was deprecated in v10 and is no longer supported\. Update your project configuration to use "@nrwl\/linter:eslint" builder instead\./ ); expect(() => runCLI(`lint ${myapp} --linter=random`)).toThrow( /'random' should be one of eslint,tslint/ diff --git a/packages/linter/src/executors/lint/lint.impl.ts b/packages/linter/src/executors/lint/lint.impl.ts index c0325dffff..c16742548d 100644 --- a/packages/linter/src/executors/lint/lint.impl.ts +++ b/packages/linter/src/executors/lint/lint.impl.ts @@ -5,6 +5,6 @@ export default async function run( _context: ExecutorContext ): Promise { throw new Error( - `"@nrwl/linter:lint" was deprecated in v10 and is no longer supported. Update your angular.json to use "@nrwl/linter:eslint" builder instead.` + `"@nrwl/linter:lint" was deprecated in v10 and is no longer supported. Update your project configuration to use "@nrwl/linter:eslint" builder instead.` ); }