Skip to content

Strossle Eslint JavaScript style guide based on airbnb-base style guide.

License

Notifications You must be signed in to change notification settings

strossle/eslint-config-strossle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strossle JavaScript Style Guide

The his JavaScript style guide is based on the eslint-config-airbnb-base style guide.

Table of Contents

  1. Arrow Functions
  2. Curly Braces
  3. Indentation

Arrow functions

We have turned off arrow function rules

Curly Braces

  • 2.1 Braces: Both signle and multi-statment blocks should be surrounded by braces.
if (i < 10) i++; // bad

if (i < 10) { // good
    i++;
}

Indentation

  • 3.1 Width: Indentation levels should be 4 spaces. We feel that 4 spaces makes it easier to distinguish between indentation levels.

About

Strossle Eslint JavaScript style guide based on airbnb-base style guide.

Resources

License

Stars

Watchers

Forks

Packages

No packages published