Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit cc5ec49

Browse files
committed
add CODING_GUIDELINES.md
1 parent 9388445 commit cc5ec49

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

CODING_GUIDELINES.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Coding Guidelines
2+
3+
This is a live document that collects those coding guidelines we intend new code
4+
to follow.
5+
6+
7+
## ESLint
8+
9+
- Run `yarn lint` to validate your code.
10+
11+
- Don't commit code with ESLint errors (it'll make the build in CircleCI fail).
12+
13+
- Code with ESLint warnings won't make the build in CircleCI fail, but reviewers
14+
will likely request they're fixed before merging a contribution.
15+
16+
17+
## Naming Conventions
18+
19+
### Path and Filenames
20+
21+
- Use lower case names and only alphanumeric characters (unless required
22+
otherwise).
23+
24+
- Avoid stuttering:
25+
- bad: `my-connector/my-connector-driver.js`
26+
- good: `my-connector/driver.js`
27+
28+
- Use the extension `.jsx` for files that contain JSX and `.js` for those that
29+
only contain JavaScript.
30+
31+
### Variable and Function Names
32+
33+
- Use JavaScript convention, i.e. camelCase.

0 commit comments

Comments
 (0)