Just published an ESLint plugin to ban `as` type assertions in TypeScript code. `as const` is still allowed. Apart from tests, there's almost always a way to rewrite the code in a sound way. https://t.co/q9QFzKbCJ4 0 atbildes
Kirill Korolyov (2020-05-24 01:33:34) |
Just published an ESLint plugin to ban `as` type assertions in TypeScript code. `as const` is still allowed. Apart from tests, there's almost always a way to rewrite the code in a sound way. https://t.co/q9QFzKbCJ4 |