Skill Wiki v0.1.0
rule @web-style/rule-one-binding-per-declaration

One Binding Per Declaration

Write `const a = 1; const b = 2;` rather than `const a = 1, b = 2;`. One declaration per binding makes diffs cleaner, lets you initialise each from a different expression without contortions, and avoids the trap of accid…

Skill
@web-style
Domain
web-style
Version
0.1.0
Quality
4.0
Edges
2 out · 1 in
Tokens
92/180/195
$ prime install @web-style/rule-one-binding-per-declaration

Projection

Always in _index.xml · the agent never has to ask for this.

OneBindingPerDeclaration [rule] v0.1.0

Write const a = 1; const b = 2; rather than const a = 1, b = 2;. One declaration per binding makes diffs cleaner, lets you initialise each from a different expression without contortions, and avoids the trap of accidentally giving every name in a comma-separated list the same const-vs-let modifier.

Source

prime-system/examples/web-style/primes/compiled/@web-style/rule-one-binding-per-declaration/atom.yaml

Compiled at 2026-05-10