I couldn't see a way of formatting / allowing if-statements with leading && and odd line breaks so I'm trying out standard to see the results. Main differences:
- single quote strings
- no semi colons
function functionNamesHaveSpaceBeforeTheFirstParenthesis () {} (easier to search for function definitions rather than just usage)
- standard complains on
var
- standard catches
let when it should be const
- standard catches unused variables (big plus)
- standard catches global variables (big plus)
I couldn't see a way of formatting / allowing if-statements with leading `&&` and odd line breaks so I'm trying out `standard` to see the results. Main differences:
* single quote strings
* no semi colons
* `function functionNamesHaveSpaceBeforeTheFirstParenthesis () {}` (easier to search for function definitions rather than just usage)
* standard complains on `var`
* standard catches `let` when it should be `const`
* standard catches unused variables (big plus)
* standard catches global variables (big plus)