Skip to content

gojob-1337/typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gojob TypeScript Style Guide() {

A mostly reasonable approach to TypeScript

Table of Contents

  1. Naming Conventions

Naming Conventions

  • 1.1 Interfaces: Use "I" as a prefix for interface names.
    // bad
    interface User {
        name: string;
    }

    // good
    interface IUser {
        name: string;
    }

- 1.2 Types: Use PascalCase for type names.

- 1.3 Enum values: Use PascalCase for enum values.

- 1.4 Functions: Use camelCase for function names.

- 1.5 Property names and local variables: Use camelCase for property names and local variables.

- 1.6 Private properties: Do not use a prefix for private properties name (not even _).

- 1.7 Whole words: Use whole words in names when possible.

⬆ back to top

Tools

Blogs

⬆ back to top

};

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •