-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
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
}larsenwork, bopfer, j-f1 and mekarthedev
Metadata
Metadata
Assignees
Labels
enhancement: plugin rule optionNew rule option for an existing eslint-plugin ruleNew rule option for an existing eslint-plugin rulehas prthere is a PR raised to close thisthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin