fix(linter): improve error message when attempting to use deprecated tslint (#8090)
This commit is contained in:
parent
6245464714
commit
c5b66abb9d
@ -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/
|
||||
|
||||
@ -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.`
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user