Re:Future of TypeScript on ESLint
by ng12 on Friday January 18, 2019 @05:27PM
(#18943695)
It's very seamless. There's a flag, allowJs, that lets you import js files with only sanity checks (no actual typechecking). You can then start converting individual files to Typescript as you go.
[ Parent
| on HN ]
Re:Future of TypeScript on ESLint
by atombender on Friday January 18, 2019 @05:38PM
(#18943788)
Thanks! I wish I could remember what I ran into the last time. I guess I'll just have to try.
I believe the allowJS flag is new and disabled by default. It may not have existed when you last tried. That’s what happened with our team. We tried to switch in either 0.x or low 1.x and at the time I believe we had to convert everything to TS (although, we may just not have been aware of the allowJS flag at the time).