Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 494 Bytes

coding_style.md

File metadata and controls

19 lines (14 loc) · 494 Bytes

Coding style

ESLint

The project uses ESLint to enforce the following rules:

  • Indent: 2 spaces
  • No trailing spaces
  • Single quotes ' ' instead of double quotes " "
  • No semicolons
  • Equality comparison is '===' instead of '=='
  • Comma is followed by space
  • Object curly spacing: OK: { a, b, c }, Wrong: {a, b, c}
  • Arrow spacing: OK: (a) => { }, Wrong: (a)=>{ }

Naming conventions

  • Variable and method names are written in camelCase
  • Component names start with Capital letters