molindo / eslint-config-molindo

ESLint config that implements the Molindo styleguide and helps to catch errors.
MIT License
1 stars 2 forks source link

Consider enabling `@typescript-eslint/ban-ts-comment` for `@ts-ignore` and `@ts-nocheck` #89

Closed amannn closed 10 months ago

amannn commented 1 year ago

@ts-expect-error is the better alternative to these, as once the error is resolved, @ts-expect-error will itself become an error and therefore nudges the user to remove the directive and keep the code base clean.

https://github.com/molindo/eslint-config-molindo/blob/539c8f16049a120a4b0b7ee900b2a9738d386f34/typescript.js#L36