Base rules
This page introduces some general rules for JavaScript programming. Most of these are enforced by ESLint core rules.
📄️ General formatting
Code formatting is completely Prettier-powered. Some Prettier configuration options that can be contended are explained below. We only use ESLint to enforce some formatting rules that Prettier cannot handle, mostly around curly braces and comments.
📄️ Literals
This page discusses styles for number, string, and regex literals, as well as template/symbol expressions.
📄️ Variables & names
This page discusses rules around variable declaration, use of properties, and naming.
📄️ Operators
This page discusses styles for all operators, including arithmetic, comparison, assignment, and other operators.
📄️ Control flow
This page introduces styles for all statements, such as if-else, loops, conditions, and general authoring of control flow.
📄️ Functions
This page concerns styles for authoring functions, including the syntax for function declarations, arrow functions, and methods.
📄️ Objects & classes
This page introduces rules related to declaring objects and classes. It does not discuss about using them.
📄️ Collections
This page introduces rules related to arrays and other structures.
📄️ Async operations
This page discusses best practices for writing promises and async/await and managing async operations.
📄️ Modules
This page introduces rules related to modules, such as import/exports.