Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Latest commit

 

History

History
40 lines (23 loc) · 861 Bytes

class-name-casing.md

File metadata and controls

40 lines (23 loc) · 861 Bytes

Require PascalCased class and interface names (class-name-casing)

This rule enforces PascalCased names for classes and interfaces.

Rule Details

This rule aims to make it easy to differentiate classes from regular variables at a glance.

Examples of incorrect code for this rule:

class invalidClassName {}

class Another_Invalid_Class_Name {}

var bar = class invalidName {};

interface someInterface {}

Examples of correct code for this rule:

class ValidClassName {}

export default class {}

var foo = class {};

interface SomeInterface {}

When Not To Use It

You should turn off this rule if you do not care about class name casing, or if you use a different type of casing.

Further Reading