style-guides

Crew Dev Javascript and Typescript styles guides

This style guide is based on Airbnb’s style guide for javascript

Table of Contents

  1. Types
  2. References
  3. Objects
  4. Arrays
  5. Destructuring
  6. Strings
  7. Functions
  8. Arrow Functions
  9. Classes & Constructors
  10. Modules
  11. Iterators and Generators
  12. Properties
  13. Variables
  14. Hoisting
  15. Comparison Operators & Equality
  16. Blocks
  17. Control Statements
  18. Comments
  19. Whitespace
  20. Commas
  21. Semicolons
  22. Type Casting & Coercion
  23. Naming Conventions
  24. Accessors
  25. ECMAScript 5 Compatibility
  26. ECMAScript 6+ (ES 2015+) Styles
  27. Standard Library
  28. Testing

Types

⬆ back to top

References

⬆ back to top

Objects

⬆ back to top

Arrays

⬆ back to top

Destructuring

⬆ back to top

Strings

⬆ back to top

Functions

⬆ back to top

Arrow Functions

⬆ back to top

Classes & Constructors

⬆ back to top

Modules

⬆ back to top

Iterators and Generators

⬆ back to top

Properties

⬆ back to top

Variables

⬆ back to top

Hoisting

⬆ back to top

Comparison Operators & Equality

⬆ back to top

Blocks

⬆ back to top

Control Statements

⬆ back to top

Comments

⬆ back to top

Whitespace

⬆ back to top

Commas

⬆ back to top

Semicolons

⬆ back to top

Type Casting & Coercion

⬆ back to top

Naming Conventions

⬆ back to top

Accessors

⬆ back to top

ECMAScript 5 Compatibility

⬆ back to top

ECMAScript 6+ (ES 2015+) Styles

  1. Arrow Functions
  2. Classes
  3. Object Shorthand
  4. Object Concise
  5. Object Computed Properties
  6. Template Strings
  7. Destructuring
  8. Default Parameters
  9. Rest
  10. Array Spreads
  11. Let and Const
  12. Exponentiation Operator
  13. Iterators and Generators
  14. Modules

⬆ back to top

Standard Library

The Standard Library contains utilities that are functionally broken but remain for legacy reasons.

⬆ back to top

Testing