TypeScript
95 rules oxlint@1.91.0
Complete effective rule inventory.
Rules
No enabled TypeScript rules match this search.
-
typescript/no-misused-promisesDisallow Promises in places not designed to handle them
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-misused-spreadDisallow using the spread operator when it might cause unexpected behavior
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-mixed-enumsDisallow enums from having both number and string members
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-namespaceDisallow TypeScript namespaces
: error in All TypeScript contexts -
typescript/no-non-null-asserted-nullish-coalescingDisallow non-null assertions in the left operand of a nullish coalescing operator
: error in All TypeScript contexts -
typescript/no-non-null-asserted-optional-chainDisallow non-null assertions after an optional chain expression
: error in All TypeScript contexts -
typescript/no-non-null-assertionDisallow non-null assertions using the
!postfix operator: error in TypeScript source, React source, JavaScript source, React JavaScript source, Syntax-only tool configuration, Design-system React source -
typescript/no-redundant-type-constituentsDisallow members of unions and intersections that do nothing or override type information
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-require-importsDisallow invocation of
require(): error in All TypeScript contexts -
typescript/no-this-aliasDisallow aliasing
this: error in All TypeScript contexts -
typescript/no-unnecessary-boolean-literal-compareDisallow unnecessary equality comparisons against boolean literals
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unnecessary-conditionDisallow conditionals where the type is always truthy or always falsy
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unnecessary-parameter-property-assignmentDisallow unnecessary assignment of constructor property parameter
: error in All TypeScript contexts -
typescript/no-unnecessary-qualifierDisallow unnecessary namespace qualifiers
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unnecessary-template-expressionDisallow unnecessary template expressions
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unnecessary-type-argumentsDisallow type arguments that are equal to the default
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unnecessary-type-assertionDisallow type assertions that do not change the type of an expression
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unnecessary-type-constraintDisallow unnecessary constraints on generic types
: error in All TypeScript contexts -
typescript/no-unnecessary-type-conversionDisallow conversion idioms when they do not change the type or value of the expression
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unnecessary-type-parametersDisallow type parameters that aren't used multiple times
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unsafe-argumentDisallow calling a function with a value with type
any: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unsafe-assignmentDisallow assigning a value with type
anyto variables and properties: error in TypeScript source, React source, JavaScript source, React JavaScript source, Design-system React source -
typescript/no-unsafe-callDisallow calling a value with type
any: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unsafe-declaration-mergingDisallow unsafe declaration merging
: error in All TypeScript contexts -
typescript/no-unsafe-enum-assignmentDisallow assigning non-enum values to enum typed locations
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unsafe-enum-comparisonDisallow comparing an enum value with a non-enum value
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unsafe-function-typeDisallow using the unsafe built-in Function type
: error in All TypeScript contexts -
typescript/no-unsafe-member-accessDisallow member access on a value with type
any: error in TypeScript source, React source, JavaScript source, React JavaScript source, Design-system React source -
typescript/no-unsafe-returnDisallow returning a value with type
anyfrom a function: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-unsafe-type-assertionDisallow type assertions that narrow a type
: error in TypeScript source, React source, JavaScript source, React JavaScript source, Design-system React source -
typescript/no-unsafe-unary-minusRequire unary negation to take a number
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source -
typescript/no-useless-default-assignmentDisallow default values that will never be used
: error in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Design-system React source