fix(linter): improve error message when attempting to use deprecated tslint (#8090)

This commit is contained in:
Miroslav Jonaš 2021-12-10 12:27:00 +01:00 committed by GitHub
parent 6245464714
commit c5b66abb9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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/

View File

@ -5,6 +5,6 @@ export default async function run(
_context: ExecutorContext
): Promise<any> {
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.`
);
}