Patterns
No Assign Then Return
Disallow assigning to a const variable and immediately returning it when the value can be returned directly without the intermediate binding.
No Await In Loop
Disallow await inside loops so sequential async calls that could be parallelized with Promise.all are caught early during linting.
No Boolean Var For If
Disallow extracting a multi-condition boolean into a single-use variable when the condition can be inlined in the next if-statement.
No Bracket Assignment
Disallow bracket notation assignment on objects and encourage Reflect.set for dynamic property writes to keep mutation sites explicit.
No Bracket Method Call
Disallow calling methods via bracket notation with a static string key when standard dot notation is available and more readable.
No Template Curly in String
Disallow template literal placeholder syntax in regular strings so missing backticks are caught before the expression appears literally in output.
No Use Before Define
Disallow use of variables, constants, functions, classes, and types before they are defined to enforce top-down declaration order.