lightsoutAlpha

named-constant-casing

a named constant in camelCase, or a lone value constant in PascalCase

Agent checkadvisory by defaultbasecode

The argument

Casing

Named constants are PascalCase (Action, LogLevel) — the const object and its derived type share one name, and the type must be PascalCase. The file matches: Action.ts.

This is distinct from plain value constants (a single scalar or config value like maxRetries, emailRegex), which stay camelCase. The test: if it backs a union or has members consumers dot into (Action.Add), it's a named constant → PascalCase; if it's a lone value, it's a value constant → camelCase.

The proof

failsrc/common/constants/action.ts
// Members consumers dot into, so it is a named constant — and named constants
// are PascalCase, file included.
export const action = {
	Add: 'add',
	Remove: 'remove',
} as const;

export type action = (typeof action)[keyof typeof action];
passsrc/common/constants/Action.ts
export const Action = {
	Add: 'add',
	Remove: 'remove',
} as const;

export type Action = (typeof Action)[keyof typeof Action];

Turn it down

Both lines go in your lightsout.config.json.

"standards-checks": { "named-constant-casing": "advisory" }
"standards-checks": { "named-constant-casing": "off" }