Just ran no-type-assertion/no-type-assertion on a large TypeScript codebase
Just ran no-type-assertion/no-type-assertion on a large TypeScript codebase.
It found 100's of things like this:
🚩 Needless, redundant type assertions
🚩 Dangerous type assertions that were masking genuine type problems
Highly recommend running this.
Examples of issues it found:



Here's a link to the ESLint plugin: https://www.npmjs.com/package/eslint-plugin-no-type-assertion