Rules

TypeScript Specific

These rules find errors related to TypeScript features:

  • member-access - Requires explicit visibility declarations for class members.
  • member-ordering - Enforces member ordering.
  • no-any - Diallows usages of any as a type declaration.
  • no-inferrable-types - Disallows explicit type declarations for variables or parameters initialized to a number, string, or boolean.
  • no-internal-module - Disallows internal module
  • no-namespace - Disallows use of internal modules and namespaces.
  • no-reference - Disallows /// <reference path=> imports (use ES6-style imports instead).
  • no-var-requires - Disallows the use of require statements except in import statements.
  • typedef - Requires type definitions to exist.
  • typedef-whitespace - Requires or disallows whitespace for type definitions.

Functionality

These rules catch common errors in JS programming or otherwise confusing constructs that are prone to producing bugs:

Maintainability

These rules make code maintenance easier:

Style

These rules enforce consistent style across your codebase: