Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleJS Test Framework
showCommentstrue
Mocha
Jest
AVA
Jasmine

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleDeclaration of variables
showCommentstrue
Use var
Use only const and let

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleWhere to declare variables
showCommentstrue
Declare all variables at the beginning
Declare variables just before using them

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleUse of semicolon
showCommentstrue
Semi-colon terminated statements
Don't use semi-colons

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleSpacing (IntelliJ will automatically convert to this form)
showCommentstrue
2 Spaces
4 Spaces
Tabs

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleTrailing Commas
showCommentstrue
Yes Always. const foo = [x, y, z,]
Multiline Only.
Never. const foo = [x, y, z]

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleValue Coercion Comparison
showCommentstrue
Allow == and != . '1' == 1 -> true . ' ' == 0 -> true
Only Allow === and !== . '1' === 1 -> false . ' ' === 0 -> false

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
title String interpolation
showCommentstrue
Use concatenation. "Hello " + firstname;
Use inline variables (ES6 only). `Hello ${firstname}`

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleObject initialization
showCommentstrue
Explicit new. const x = new Array(), const x = new Object()
Implicit. const x = [], const x = {};

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleComponents/Containers Class Name
showCommentstrue
snake_case
camelCase
PascalCase
MACRO_CASE

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleVariable Case
showCommentstrue
snake_case
camelCase
PascalCase
MACRO_CASE

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleFunction Case
showCommentstrue
snake_case
camelCase
PascalCase
MACRO_CASE

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleActions Case
showCommentstrue
snake_case
camelCase
PascalCase
MACRO_CASE

...

Vote
changeableVotestrue
alwaysShowResultstrue
lockedtrue
titleState variables Case
showCommentstrue
snake_case
camelCase
PascalCase
MACRO_CASE

...