Pascalcase Classes And Types
Names for things that produce instances or describe shapes — classes, constructor functions, TypeScript types, interfaces, and enum names — are written in `PascalCase`: every word capitalised including the first.
$ prime install @web-style/rule-pascalcase-classes-and-types Projection
Always in _index.xml · the agent never has to ask for this.
PascalCaseClassesAndTypes [rule] v0.1.0
Names for things that produce instances or describe shapes — classes, constructor functions, TypeScript types, interfaces, and enum names — are written in PascalCase: every word capitalised including the first.
Loaded when retrieval picks the atom as adjacent / supporting.
PascalCaseClassesAndTypes [rule] v0.1.0
Names for things that produce instances or describe shapes — classes, constructor functions, TypeScript types, interfaces, and enum names — are written in PascalCase: every word capitalised including the first.
Checks
- Class declarations match
[A-Z][a-zA-Z0-9]*(e.g.UserSession,HttpClient). - TypeScript
type,interface, andenumdeclarations use the same PascalCase shape. - React component identifiers — function or class — are PascalCase; lowercase names are reserved for HTML intrinsics.
- ESLint
new-caprule (or TypeScript naming-convention) enforces this.
Label
Classes, constructors, type aliases, interfaces, and enums use PascalCase
Loaded when retrieval picks the atom as a focal / direct hit.
PascalCaseClassesAndTypes [rule] v0.1.0
Names for things that produce instances or describe shapes — classes, constructor functions, TypeScript types, interfaces, and enum names — are written in PascalCase: every word capitalised including the first.
Checks
- Class declarations match
[A-Z][a-zA-Z0-9]*(e.g.UserSession,HttpClient). - TypeScript
type,interface, andenumdeclarations use the same PascalCase shape. - React component identifiers — function or class — are PascalCase; lowercase names are reserved for HTML intrinsics.
- ESLint
new-caprule (or TypeScript naming-convention) enforces this.
Label
Classes, constructors, type aliases, interfaces, and enums use PascalCase
Label
Classes, constructors, type aliases, interfaces, and enums use PascalCase
Source
prime-system/examples/web-style/primes/compiled/@web-style/rule-pascalcase-classes-and-types/atom.yaml