Naming & Conventions
Rules for naming conventions, type style, and file naming. Browse all 6 rules in this category.
Showing 6 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 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