简体   繁体   中英

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

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 . Then use the guide at https://github.com/angular-eslint/angular-eslint . Also covers prettier.

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