docs: explain 29 scoped lint exceptions for HEL-762 batch 4

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-22 04:14:43 +08:00
co-authored by multica-agent
parent 46fd5bbc86
commit 4c849e9ef9
19 changed files with 96 additions and 0 deletions
@@ -198,6 +198,7 @@
function toggleIssue(f: WorkflowConvertFileReport) {
const key = rk(f);
// eslint-disable-next-line svelte/prefer-svelte-reactivity -- Mutate an isolated copy then assign expandedIssues once; rendering observes the state replacement, not intermediate Set writes.
const next = new Set(expandedIssues);
if (next.has(key)) next.delete(key);
else next.add(key);
@@ -235,6 +235,7 @@
);
function toggleRow(id: number, on: boolean) {
// eslint-disable-next-line svelte/prefer-svelte-reactivity -- Keep copy/mutate/assign selection semantics: row toggle publishes selected only after the working copy is complete.
const next = new Set(selected);
if (on) next.add(id);
else next.delete(id);
@@ -242,6 +243,7 @@
}
function toggleSelectVisible() {
// eslint-disable-next-line svelte/prefer-svelte-reactivity -- Keep copy/mutate/assign selection semantics: visible rows are added/removed before publishing selected once.
const next = new Set(selected);
if (allVisibleSelected) {
for (const r of visible) next.delete(r.id);
@@ -319,6 +321,7 @@
mutationFn: (id: number) => workflows.delete(id),
onSuccess: (_res, id) => {
invalidateWorkflows();
// eslint-disable-next-line svelte/prefer-svelte-reactivity -- Delete success removes the ID from a working copy, then replaces selected; preserve the existing publication boundary.
const next = new Set(selected);
next.delete(id);
selected = next;