This repository was archived by the owner on May 29, 2026. It is now read-only.
fix(#323): clear 7 ESLint source errors#325
Closed
rubenvdlinde wants to merge 1 commit into
Closed
Conversation
- src/store/modules/bezwaar.js:499 (no-unused-vars):
remove unused settingsStore + its import.
- src/views/MyWork.vue:61 (vue/no-dupe-v-else-if):
change v-else-if="!loading" to v-if="!loading" so grouped
sections render alongside ParafeerInbox (the v-else-if was a
copy-paste leftover from before ParafeerInbox was inserted into
the chain; the branch could never execute).
- src/views/cases/components/CaseTransferDialog.vue:38 (vue/valid-v-slot):
move <template #actions> out of the wrapper <div> so it is a
direct child of NcDialog.
- src/views/cases/components/CreateShareDialog.vue:92 (vue/valid-v-slot):
same as above — move <template #actions> out of the wrapper
<div> to be a direct child of NcDialog.
- src/views/cases/components/EmailComposer.vue:49,59 (vue/no-parsing-error):
the literal '{{' inside {{ }} interpolation confused the
template parser. Replaced with a formatVariable(v) method that
returns the same string.
- src/views/settings/components/DurationPicker.vue:31 (no-unused-vars):
remove unused formatDuration from named import.
Lint goes 7 errors -> 0 errors. Build still succeeds.
Closes #323
Contributor
Author
|
Splitting into two PRs per review request: a mechanical-only ESLint fix PR (the 6 no-op changes) and a separate behaviour-restoration PR for MyWork.vue (which needs explicit framing because it un-blocks the dead grouped-sections branch). |
Contributor
Quality Report — ConductionNL/procest @
|
| Check | PHP | Vue | Security | License | Tests |
|---|---|---|---|---|---|
| lint | ✅ | ||||
| phpcs | ❌ | ||||
| phpmd | ✅ | ||||
| psalm | ✅ | ||||
| phpstan | ✅ | ||||
| phpmetrics | ✅ | ||||
| eslint | ✅ | ||||
| stylelint | ❌ | ||||
| composer | ✅ | ✅ 100/100 | |||
| npm | ✅ | ✅ 407/407 | |||
| PHPUnit | ⏭️ | ||||
| Newman | ⏭️ | ||||
| Playwright | ❌ |
Spec coverage: 3% (21 tests / 613 specs)
Quality workflow — 2026-05-10 21:28 UTC
Download the full PDF report from the workflow artifacts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #323. The baseline-fix PR (#324) un-blocked ESLint on
procest, which surfaced 7 real source-level errors (parsing errors, v-slot scoping, unused vars, duplicatev-else-if). This PR fixes all of them with the smallest possible change per rule.Lint result: 7 errors -> 0 errors. Warnings are deliberately left untouched (separate cleanup).
Error -> fix mapping
src/store/modules/bezwaar.js:499no-unused-varssettingsStore+ itsuseSettingsStoreimport (no other references).src/views/MyWork.vue:61vue/no-dupe-v-else-ifv-else-if="!loading"tov-if="!loading"so the grouped-sections template renders alongsideParafeerInbox. Thev-else-ifwas a copy-paste leftover from commit5847d05(when<ParafeerInbox v-if="!loading" />was inserted into the chain) and the branch could never execute.src/views/cases/components/CaseTransferDialog.vue:38vue/valid-v-slot<template #actions>out of the inner wrapper<div class=\"case-transfer-dialog\">so it is a direct child ofNcDialog(which is what owns theactionsslot).src/views/cases/components/CreateShareDialog.vue:92vue/valid-v-slot<template #actions>out of the inner wrapper<div>so it is a direct child ofNcDialog.src/views/cases/components/EmailComposer.vue:49vue/no-parsing-error'{{' + v + '}}'inside{{ }}confused Vue's template parser. Replaced with aformatVariable(v)method that returns the same string.src/views/cases/components/EmailComposer.vue:59vue/no-parsing-errorsrc/views/settings/components/DurationPicker.vue:31no-unused-varsformatDurationfrom the named import (keptparseDuration,isValidDuration).Files touched
src/store/modules/bezwaar.jssrc/views/MyWork.vuesrc/views/cases/components/CaseTransferDialog.vuesrc/views/cases/components/CreateShareDialog.vuesrc/views/cases/components/EmailComposer.vuesrc/views/settings/components/DurationPicker.vueTest plan
npm ci- clean install OKnpm run lint- 7 errors -> 0 errors (13 warnings unchanged, out of scope)npm run build- succeeds (webpack compiled with 9 warnings, same as before)Note on
MyWork.vue(small behaviour fix)The
vue/no-dupe-v-else-iffix onMyWork.vueis technically a behaviour change - but it fixes a bug, not introduces one. Thev-else-if="!loading"was a dead branch (impossible to satisfy), meaning the grouped sections (Overdue / Today / Upcoming, lines 62-onwards) never rendered under any conditions. Withv-if="!loading"they now render whenever the loading state is false, which is clearly the intent based on git history (commit5847d05introduced the bug when adding<ParafeerInbox>).Worth a quick smoke-test before merge to confirm the My Work view now shows its grouped sections. If reviewers prefer to revert just this one hunk and file a follow-up issue, the other 6 fixes are pure no-ops.