简体   繁体   English

Tslint 到 ESLint 迁移错误:未知选项 '--remove-tslint-if-no-more-tslint-targets'

[英]Tslint to ESLint Migration Error : unknown option '--remove-tslint-if-no-more-tslint-targets'

I am using the below option to convert from TSLint to ESLint on Angular 11 and getting the below error我正在使用以下选项在 Angular 11 上从 TSLint 转换为 ESLint 并收到以下错误

ng g @angular-eslint/schematics:convert-tslint-to-eslint --remove-tslint-if-no-more-tslint-targets

unknown option '--remove-tslint-if-no-more-tslint-targets' 

I have researched for few hours and I couldn't fix it , anyone can help me on this?我已经研究了几个小时,但我无法修复它,任何人都可以帮助我吗?

You should not update it all by hand.你不应该手动更新它。 First update angular to version 12, see https://update.angular.io/?v=11.0-12.0 .首先将 angular 更新到版本 12,请参阅https://update.angular.io/?v=11.0-12.0 Then use the guide at https://github.com/angular-eslint/angular-eslint .然后使用https://github.com/angular-eslint/angular-eslint上的指南。 Also covers prettier.还涵盖了更漂亮。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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