JavaScript Standard Style
ARANK
The best way to learn about standard is to just install it and give it a try on your code.Use 2 spaces for indentation.eslint: indentfunction hello (name) { console.log('hi', name)}Use single quotes for strings except to avoid escaping.eslint: quotesconsole.log('hello there') // ✓ okconsole.log("hello there") // ✗ avoidconsole.log(`hello there`) // ✗ avoid$("<div class='box'>") // ✓ okconsole.log(`hello ${name}`) // ✓ okNo unused variables.eslint: no-unused-varsfunction myFunction () { var result = something() // ✗ avoid}Add a space after keywords.eslint: keyword-spacingif (condition) { ... } // ✓ okif(condition) { ... } // ✗ avoidAdd a space before a function declaration's parentheses.eslint: space-before-function-parenfunction name (arg) { ... } // ✓ okfunction name(arg) { ... } // ✗ avoidrun(function () { ... }) // ✓ okrun(function() { ... }) // ✗ avoidAlways use === instead of ==.Exception: obj == null is allowed to check for n…