For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt, and this page is available as Markdown at https://rslint.rs/rules/typescript-eslint/no-type-alias.md.
close

no-type-alias

Added in v0.6.0

Configuration

rslint.config.ts
import { defineConfig, ts } from '@rslint/core';

export default defineConfig([
  ts.configs.recommended,
  {
    rules: {
      '@typescript-eslint/no-type-alias': 'error',
    },
  },
]);

Rule Details

Disallow type aliases.

Examples of incorrect code for this rule:

type Name = string;

Examples of correct code:

interface Name {
  value: string;
}

Original Documentation