Style | Rule | Example | Reason |
---|---|---|---|
Indentation | 3 spaces (no tabs) | ... | |
Quotes (JS) | Single quote (' ) |
const code = 'j7'; |
... |
Quotes (HTML) | Double quote (" ) |
<meta name=robots content="index, follow"> |
... |
Trailing Comma | Yes on multi-line arrays and objects, no on inline | const edges = [747, 333, 2121]; |
... |
Whitespace | For single-line arrays and objects, use spaces like: | { scores: [3, 21, 7], spin: 'up' } |
... |
Last active
December 29, 2021 05:01
-
-
Save dpilafian/49dde30bf1465c6fa7e41185779eaee7 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment