Learning TypeScript @learningtypescript.com · Feb 6

You can also lint for comment directives! @typescript-eslint.io's `@typescript-eslint/ban-ts-comment` reports if you: * use a ts-ignore or ts-nocheck directive * forget to attach an explanation >3 characters on a ts-expect-error directive Use linting to enforce and teach best practices. 🧠 9/🧵

1 likes 1 replies

?

Replies

Learning TypeScript · Feb 6

Finally, answering an FAQ: different tools use different comment directives. TypeScript doesn't recognize Biome's, ESLint's, Prettier, etc. ESLint doesn't recognize // ts-expect-error, ts-ignore, etc. typescript-eslint.io/troubleshoot... 10/🧵