The Basics
Formating & Indentation
Code formatting is about communication, and communication is the professional developer’s first order of business.
— Robert Martin
- All code lines within the same block should have the same level of indentation.
- An indentation is 2 spaces at a time.
- A line of code should not be longer than 80 characters
- Import statements, functions and classes should be spaced with a single line vertically.
- Utilize tools such as ESLint and Prettier to aid you at ensuring that the code conform to the styling specification;