Skip to content

[class-name-casing] apply same rules on type alias #671

@Hotell

Description

@Hotell

Currently class-name-casing applies only for class and interface. It would be nice ( for consistent codebase ) to apply this rule also on type. probably enum should use this as well.

Maybe it should be extracted to separate rule as class-name-casing is too confusing by it's name.
Suggested rule rename/new name (for interface/type/enum) -> types-casing

Expected Result

// LINT ERROR
type user = {
  name: string
  age: number
}

Actual Result

// NO LINT ERROR 🥺
type user = {
  name: string
  age: number
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement: plugin rule optionNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions