Skip to content

require-camelcase-properties

Require unquoted lower snake_case TypeScript properties and dot access to use camelCase.

Why

Unquoted snake_case property syntax makes external wire naming indistinguishable from application-domain naming and lets inconsistent contracts spread through typed code.

Fix

Rename application properties to camelCase. At an external wire boundary, make the exception explicit with a quoted key and bracket access.

Examples

Before — flagged Do not use unquoted wire casing as application property syntax
src/calls-date-range.ts
export function range(): { date_from: string; date_to: string } {
return { dateFrom: "", dateTo: "" };
}
After — preferred Use camelCase for an application-facing return shape
src/calls-date-range.ts
export function range(): { dateFrom: string; dateTo: string } {
return { dateFrom: "", dateTo: "" };
}