This style guide assumes the usage of the JavaScript transpiler Babel, and requires @babel/preset-env or a equivalent configuration to make use of all ECMAScript 6+ (ES 2015+) features including staged proposals!
There are two sections with chapters about…
- the comprehensive base rules including ECMAScript 6+ (ES 2015+).
- React specific rules like e.g. Higher-Order Components, the component methods & properties ordering and props.
- Types
- References
- Objects
- Arrays
- Destructuring
- Strings
- Functions
- Arrow Functions
- Classes & Constructors
- Modules
- Iterators and Generators
- Properties
- Variables
- Hoisting
- Comparison Operators & Equality
- Blocks
- Control Statements
- Comments
- Whitespace
- Commas
- Semicolons
- Type Casting & Coercion
- Naming Conventions
- Accessors
- Events
- ECMAScript 5 Compatibility
- ECMAScript 6+ (ES 2015+) Styles
- Standard Library
- Testing
- React