camelcase
UnreleasedConfiguration
rslint.config.ts
Rule Details
This rule enforces camelcase naming by reporting identifiers with internal underscores. Leading and trailing underscores and all-uppercase constants are allowed.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
"properties": "always"(default) checks property declarations and writes;"never"permits underscored property names."ignoreDestructuring": truepermits a destructured binding when it keeps the source property name, while later uses are still checked."ignoreImports": truepermits a named import when its local and exported names are identical, while later uses are still checked."ignoreGlobals": trueskips configured and comment-declared globals; unresolved names are still checked."allow"accepts exact names or JavaScript regular expression patterns.
Examples of correct code with property checks disabled:
Examples of correct code with destructured source names ignored:
Examples of correct code with an allow pattern: