BACK TO LIST

TypeScript rules

The Codiga Static Analysis engine checks TypeScript code and supports many popular libraries. If you are using React, NextJS, Vue or Angular: the engine will flag any issue in your codebase. Automate your code reviews with Codiga and merge with confidence.

@typescript-eslint/ban-ts-comment

Best practice
Critical

Detect any @ts-<directive> comment as it can reduce the effectiveness of TypeScript overall.

Learn more

@typescript-eslint/prefer-as-const

Best practice
Critical

This rule recommends usage of const assertion when type primitive value is equal to type.

We use cookies to improve your site experience, including analytics cookies to understand how you use our product and design better experiences. Please read our Cookie Policy.