Always use const or let to declare variables | Mandatory | |
Use one const or let declaration per variable or assignment | Mandatory | |
Use single quotes '' for strings | Mandatory | |
| Only quote properties that are invalid identifiers | Mandatory | |
| When programmatically building up strings, use template strings instead of concatenation | Mandatory | |
| Use object destructuring when accessing and using multiple properties of an object | Mandatory | |
| Use array destructuring | Recommended | |
No eval | Mandatory | |
| Always put default parameters last | Mandatory | |
| Spacing in a function signature | Mandatory | |
| If the function body consists of a single statement returning an expression without side effects, omit the braces and use the implicit return. Otherwise, keep the braces and use a return statement | Mandatory | |
| Always include parentheses around arguments for clarity and consistency | Recommended | |
Don't use iterators. Prefer JavaScript's higher-order functions instead of loops like for-in or for-of | Recommended | |
Avoid using unary increments and decrements(++, --) | Recommended | |
Use === and !== over == and != | Mandatory | |
| Use shortcuts for booleans, but explicit comparisons for strings and numbers | Recommended | |