Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const constOnTop: Rule.RuleModule = {
docs: { description: "Keep const and let declarations in separate groups at the beginning of their scope." },
schema: [],
messages: {
move: "Declare this variable at the top of its scope, before executable statements.",
move: "Declare this variable at the top of its scope, before executable statements. If initialization depends on earlier work, split the phases into functions and pass the required state explicitly.",
group: "Keep {{kind}} declarations in one group. Do not interleave const and let declarations.",
},
},
Expand Down
Loading