Naming & Conventions
Rules for naming conventions, type style, and file naming. Browse all 7 rules in this category.
Showing 7 rules
Array Type Generic
array-type-genericDisallow bracket array type syntax and require Array<T> / ReadonlyArray<T>.
- Problem
- Automatic fix
Ban Types
ban-typesBan configured TypeScript utility types, defaulting to Omit in favor of Except.
- Problem
No Inline Signature Types
no-inline-signature-typesDisallow inline object types in parameter and return type annotations; declare a named interface instead.
- Suggestion
No Spec File Extension
no-spec-file-extensionDisallow the .spec.{ts,tsx} file extension for test files. Use .test.{ts,tsx} instead.
- Problem
Prefer Optional Parameter
prefer-optional-parameterDisallow undefined in a function parameter's type union; declare the parameter optional with ? instead.
- Problem
- Automatic fix
Prefer Pascal Case Enums
prefer-pascal-case-enumsEnforce PascalCase names for enums and enum members.
- Suggestion
Require Async Suffix
require-async-suffixRequire async function names to end with Async.
- Problem