简体   繁体   中英

Angular 6 tslint duplicates every warning and error

I've recently updated to Angular 6 and now every tslint error and warning is being duplicated. Tslint version is 5.10.0, Angular CLI is 6.0.0, Typescript is 2.7.2 and Codelyzer is 4.3.0. For example:

ERROR: file.ts[30, 58]: Missing trailing comma 
ERROR: file.ts[30, 58]: Missing trailing comma 
ERROR: file.ts[33, 29]: Missing semicolon 
ERROR: file.ts[33, 29]: Missing semicolon 

Has anybody faced similar issues?

FWIW, in case anyone else comes across this issue. I had this same issue, it turned out to be that I had multiple TSLINT extensions enabled in VSCode (one for M$ and one from egamma). So it would display errors and warnings twice. Once I disabled one of them it only displays the errors and warnings once as intended.

Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM