From 4976b4ebe04b69ec72edddfcddafb217ad6503b5 Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Wed, 29 Apr 2026 11:09:46 +0200 Subject: [PATCH] style(app): strip trailing-whitespace residue from Tier 1 + 2 autofix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WS-3 session 1b-i Task 3. The Tier 1 + Tier 2 autofix passes (curly-brace stripping in particular) left trailing whitespace on the affected lines. \`git diff --check\` flagged 1 file with 7 trailing-whitespace lines: - apps/app/src/layouts/components/DefaultLayoutWithVerticalNav.vue Used full-file sed strip per the prompt's <30-files decision rule. Once the trailing whitespace was gone, a follow-up \`eslint --fix\` on the same file resolved 8 additional cascading items that the original Tier 1 pass couldn't reach because of ESLint's default 10-pass cap (curly-strip → exposed-indent → multi-blank-line cascade). The re-indented body is now consistent (4/8/6 spaces), no logic touched. This second-pass cleanup is folded into this commit because it was triggered by — and is only a mechanical follow-up to — the whitespace strip. Other Tier 1 / Tier 2 files may have similar pass-cap residue (161 fixable items remain in the post-Tier-2 baseline). Those are deferred to session 1b-ii's planned second-pass autofix and are flagged in the audit report. Tests + typecheck still green. Lint baseline progression: - Pre-Task-3 (post-Tier-2): 246 problems - Post-Task-3: 231 problems Co-Authored-By: Claude Opus 4.7 --- .../DefaultLayoutWithVerticalNav.vue | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/apps/app/src/layouts/components/DefaultLayoutWithVerticalNav.vue b/apps/app/src/layouts/components/DefaultLayoutWithVerticalNav.vue index d9d855ab..a80c309e 100644 --- a/apps/app/src/layouts/components/DefaultLayoutWithVerticalNav.vue +++ b/apps/app/src/layouts/components/DefaultLayoutWithVerticalNav.vue @@ -25,27 +25,25 @@ const navItems = computed(() => { const orgName = authStore.currentOrganisation?.name ?? 'Beheer' let orgItems = orgNavItems.map(item => { - if ('heading' in item && item.heading === 'Beheer') + if ('heading' in item && item.heading === 'Beheer') return { ...item, heading: orgName } - - -return item + + return item }) // During impersonation: hide org-dependent items if user has no organisation if (impersonationStore.isImpersonating && !hasOrganisation.value) { orgItems = orgItems.filter(item => { - if ('heading' in item) -return false - -return 'to' in item && item.to?.name === 'dashboard' + if ('heading' in item) + return false + + return 'to' in item && item.to?.name === 'dashboard' }) } // Platform items: only for super_admin AND only when NOT impersonating - if (authStore.isSuperAdmin && !impersonationStore.isImpersonating) + if (authStore.isSuperAdmin && !impersonationStore.isImpersonating) return [...orgItems, ...platformNavItems] - return orgItems })