简体   繁体   中英

Angular ESLint : Any Data Type Warning

I am using Angular 10. We have lot of developers using : any date type when they shouldn't be. Is there a way to flag a warning in ESLint/TSLint, if a person utilizes this datatype ?

How can this be done in ESLint settings?

TS Lint 具有您可以使用的no-any规则

 "rules": { "no-any": true }

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