Lint Rules

useCamelCase (since v0.8.0)

Enforce camel case naming convention.

Examples

Invalid

let snake_case;
nursery/useCamelCase.js:1:5 lint/nursery/useCamelCase  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   Prefer variables names in camel case.
  
  > 1 │ let snake_case;
       ^^^^^^^^^^
    2 │ 
  
   Safe fix: Rename this symbol to camel case
  
    1  - let·snake_case;
      1+ let·snakeCase;
    2 2  
  
let PascalCase;
nursery/useCamelCase.js:1:5 lint/nursery/useCamelCase  FIXABLE  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   Prefer variables names in camel case.
  
  > 1 │ let PascalCase;
       ^^^^^^^^^^
    2 │ 
  
   Safe fix: Rename this symbol to camel case
  
    1  - let·PascalCase;
      1+ let·pascalCase;
    2 2  
  

Valid

let camelCase;