Home

Awesome

Axept JavaScript Style Guide

Follow the original Airbnb JavaScript Style Guide.

This document describes only those rules which we decided to extend, to override or to add.

Other Style Guides:

TODO:

Contents

  1. Comparison Operators & Equality
  2. Comments
  3. Semicolons
  4. Lines
  5. Naming Conventions
  6. Imports
  7. Packages
  8. Type Casting & Coercion
  9. Template Strings
  10. Objects
  11. Classes & Constructors
  12. Unsorted Yet

Comparison Operators & Equality

Extends: Section 15

<a name="comparison--no-ternary-in-expression"></a>

⬆ back to top

Comments

Extends: Section 18

<a name="comments--no-obvious-comments"></a>

⬆ back to top

Semicolons

Extends: Section 21

<a name="semicolons--nope"></a>

⬆ back to top

Lines

<a name="lines--width"></a>

<a name="lines--excess-line"></a>

<a name="lines--function-declaration"></a>

⬆ back to top

Naming Conventions

Extends: Section 22

<a name="naming--no-reduced-names"></a>

<a name="naming--do-not-override-globals"></a>

<a name="naming--acronyms-and-initialisms"></a>

⬆ back to top

Imports

<a name="imports--order"></a>

⬆ back to top

Packages

<a name="packages--lodash-and-ramda"></a>

⬆ back to top

Type Casting & Coercion

Extends: Section 22

<a name="coercion--implicit-coercion"></a>

⬆ back to top

Template Strings

Extends: Section 6

<a name="template-strings--call-function"></a>

⬆ back to top

Objects

Extends: Section 3

<a name="objects--expression-assignment"></a>

⬆ back to top

Classes & Constructors

Extends: Section 9

<a name="classes--static"></a>

⬆ back to top

Unsorted Yet

<a name="unsorted--brackets"></a>

<a name="unsorted--dot-syntax"></a>

<a name="unsorted--jsx-js"></a>

<a name="unsorted--jsx-text"></a>

⬆ back to top