close

no-type-alias

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