style(app): strip trailing-whitespace residue from Tier 1 + 2 autofix
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 <noreply@anthropic.com>
This commit is contained in:
@@ -28,17 +28,16 @@ const navItems = computed(() => {
|
|||||||
if ('heading' in item && item.heading === 'Beheer')
|
if ('heading' in item && item.heading === 'Beheer')
|
||||||
return { ...item, heading: orgName }
|
return { ...item, heading: orgName }
|
||||||
|
|
||||||
|
return item
|
||||||
return item
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// During impersonation: hide org-dependent items if user has no organisation
|
// During impersonation: hide org-dependent items if user has no organisation
|
||||||
if (impersonationStore.isImpersonating && !hasOrganisation.value) {
|
if (impersonationStore.isImpersonating && !hasOrganisation.value) {
|
||||||
orgItems = orgItems.filter(item => {
|
orgItems = orgItems.filter(item => {
|
||||||
if ('heading' in item)
|
if ('heading' in item)
|
||||||
return false
|
return false
|
||||||
|
|
||||||
return 'to' in item && item.to?.name === 'dashboard'
|
return 'to' in item && item.to?.name === 'dashboard'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,7 +45,6 @@ return 'to' in item && item.to?.name === 'dashboard'
|
|||||||
if (authStore.isSuperAdmin && !impersonationStore.isImpersonating)
|
if (authStore.isSuperAdmin && !impersonationStore.isImpersonating)
|
||||||
return [...orgItems, ...platformNavItems]
|
return [...orgItems, ...platformNavItems]
|
||||||
|
|
||||||
|
|
||||||
return orgItems
|
return orgItems
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user