casing
a declaration whose name is not in the casing its kind takes
Deterministic checkadvisory by defaultbasecode
The argument
| Item | Convention | Example |
|---|---|---|
| Variables | camelCase | userName, isActive |
| Functions/Methods | camelCase | getUserName(), calculateTotal() |
| Classes | PascalCase | UserService, ApiClient |
| Interfaces | PascalCase | UserProfile, ApiResponse |
| Types | PascalCase | UserId, RequestOptions |
| Value constants | camelCase | maxRetries, emailRegex |
| Named constants | PascalCase | Action, LogLevel (see named-constants.md) |
| File names | See file-naming.md | — |
The proof
fail
export interface invoice {
label: string;
}
pass
export interface Invoice {
label: string;
}
Turn it down
Both lines go in your lightsout.config.json.
"standards-checks": { "casing": "advisory" }"standards-checks": { "casing": "off" }