Open
Description
Currently, the ESlint configuration will mark constant properties on classes as errors. For example:
class FNV {
private static readonly PRIME = 16777619;
private static readonly OFFSET = 2166136261;
// ...
}
Will be considered an error, as they are expected to follow the camel case convention used for other mutable or instance-specific values, despite being an immutable constant.
Unless this is intentional, maybe it could make sense to add a rule to force attributes tagged with static readonly
to follow the same UPPER_CASE
format as the rest of the constants.
Metadata
Assignees
Labels
No labels
Activity