Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to get warnings (not errors) for noImplicitAny noncompliance?

I have a lot of code that I'm porting to Typescript with missing types. For now, I'd like my IDE (WebStorm) to just highlight places that need typing, and I'll slowly get them fixed up.

If tsconfig.json had a warning setting for noImplicitAny, that would be ideal. Another alternative would be a tslint rule, but I don't know if the tslint engine is up to this job.

Does anyone know of a way to achieve this?

like image 611
Ed Staub Avatar asked Nov 08 '22 00:11

Ed Staub


1 Answers

you can either enable noImplicitAny as true, or strict as true (would enable noImplicitAny and several other rules), in tsconfig.json.

like image 177
engineer Avatar answered Nov 15 '22 10:11

engineer