Prefer Const Over Let
Declare every binding with `const` by default. Reach for `let` only when the binding is genuinely reassigned.…
$ prime install @web-style/rule-prefer-const-over-let Projection
Always in _index.xml · the agent never has to ask for this.
PreferConstOverLet [rule] v0.1.0
Declare every binding with const by default. Reach for let only when the binding is genuinely reassigned. A const binding signals to the reader that the slot will not change — that signal is a load-bearing part of readability.
Loaded when retrieval picks the atom as adjacent / supporting.
PreferConstOverLet [rule] v0.1.0
Declare every binding with const by default. Reach for let only when the binding is genuinely reassigned. A const binding signals to the reader that the slot will not change — that signal is a load-bearing part of readability.
Checks
- Every variable that is not reassigned in its scope is declared with
const. -
letappears only on bindings that have at least one assignment after the declaration. - Loop counters and accumulators that genuinely change use
let; everything else isconst. - ESLint
prefer-constis on aserrorandno-const-assignis on aserror.
Label
Use const for all references; only fall back to let when reassignment is required
Loaded when retrieval picks the atom as a focal / direct hit.
PreferConstOverLet [rule] v0.1.0
Declare every binding with const by default. Reach for let only when the binding is genuinely reassigned. A const binding signals to the reader that the slot will not change — that signal is a load-bearing part of readability.
Checks
- Every variable that is not reassigned in its scope is declared with
const. -
letappears only on bindings that have at least one assignment after the declaration. - Loop counters and accumulators that genuinely change use
let; everything else isconst. - ESLint
prefer-constis on aserrorandno-const-assignis on aserror.
Label
Use const for all references; only fall back to let when reassignment is required
Label
Use const for all references; only fall back to let when reassignment is required
Source
prime-system/examples/web-style/primes/compiled/@web-style/rule-prefer-const-over-let/atom.yaml