-
Notifications
You must be signed in to change notification settings - Fork 8
Style Guide
Justin Gaskins edited this page Jan 16, 2020
·
1 revision
Please refer to this guide while contributing to the project, in order to maintain a consistent and manageable codebase. Much of this guide will be similar to the Google JavaScript Style Guide, with slight differences. Adhering to these guidelines will also speed up the Pull Request process, as it will allow code reviewers to focus on code logic and accuracy instead of convention and style. Thank you!
-
Introduction
a. Terminology
b. Guide Notes -
Source File Basics
a. File Name -
Source File Structure
a. License or Copyright Information
b. Exports
c. File Implementation -
Formatting
a. Braces
b. Block Indentation
c. Statements
d. Column Limit
e. Line Wrapping
f. Whitespace
g. Grouping Parentheses
h. Comments -
Language Features
a. Variable Declaration
b. Array Literals
c. Object Literals
d. Classes
e. Functions
f. String Literals
g. Number Literals
h. Control Structures
i. this
j. Equality Checks
k. Disallowed Features -
Naming
a. Common Rules
b. By Identifier Type
c. Camel Case -
Documentation
a. Commenting
b. JSDoc
c. Wiki Pages -
Policies
a. Unspecified Issues
b. Compiler Warnings
c. Deprecation
d. Other Coding Languages
e. Local Style Rules
f. Generated Code -
Appendices
a. Commonly Misunderstood Rules
b. Style Related Tools
c. Exceptions