From 2a2948fd24029e4c5ae00624d80fbda7b8da1f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sun, 8 Mar 2026 12:30:17 +0800 Subject: [PATCH] Re-enable key Vue lint rules and fix resulting violations Co-Authored-By: Codex --- eslint.config.mjs | 8 ++++---- src/components/Compare/SidebarStates.vue | 10 ++++++---- .../Discover/Conformance/ConformanceResults.vue | 8 +++----- .../Conformance/ConformanceSidebar/ActSeqDrag.vue | 2 +- src/components/Discover/Map/Filter/ActAndSeq.vue | 6 +++--- src/components/Discover/Map/Filter/ActOcc.vue | 2 +- src/components/Discover/Map/Filter/ActOccCase.vue | 2 +- src/components/Discover/StatusBar.vue | 4 ++-- src/components/durationjs.vue | 2 +- src/views/AccountManagement/MyAccount.vue | 2 +- 10 files changed, 23 insertions(+), 23 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 1bdaee1..fcf5e17 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -119,10 +119,10 @@ export default [ "vue/multi-word-component-names": "off", "vue/no-side-effects-in-computed-properties": "off", "vue/return-in-computed-property": "off", - "vue/no-parsing-error": "off", - "vue/valid-v-else": "off", - "vue/no-deprecated-v-on-native-modifier": "off", - "vue/require-valid-default-prop": "off", + "vue/no-parsing-error": "error", + "vue/valid-v-else": "error", + "vue/no-deprecated-v-on-native-modifier": "error", + "vue/require-valid-default-prop": "error", "vue/no-unused-vars": "off", }, }, diff --git a/src/components/Compare/SidebarStates.vue b/src/components/Compare/SidebarStates.vue index 2fd9ba3..4528a14 100644 --- a/src/components/Compare/SidebarStates.vue +++ b/src/components/Compare/SidebarStates.vue @@ -112,9 +112,9 @@

Log Timeframe

- {{ primaryStatData.started_at }}  + {{ primaryStatData.started_at }}  ~ -  {{ primaryStatData.completed_at }} +  {{ primaryStatData.completed_at }}
@@ -250,9 +250,11 @@

Log Timeframe

- {{ secondaryStatData.started_at }}  + {{ secondaryStatData.started_at }}  ~ -  {{ secondaryStatData.completed_at }} +  {{ secondaryStatData.completed_at }}
diff --git a/src/components/Discover/Conformance/ConformanceResults.vue b/src/components/Discover/Conformance/ConformanceResults.vue index c6e194f..5bdf23d 100644 --- a/src/components/Discover/Conformance/ConformanceResults.vue +++ b/src/components/Discover/Conformance/ConformanceResults.vue @@ -75,7 +75,7 @@ >{{ data.charts.cases.conforming }} / {{ data.charts.cases.total }} / {{ data.charts.cases.total }} -

- Non-conformance Issues -

+

Non-conformance Issues

{{ data.timeTrend.not_conforming }} / {{ data.timeTrend.total }} / {{ data.timeTrend.total }}

close
diff --git a/src/components/Discover/Map/Filter/ActAndSeq.vue b/src/components/Discover/Map/Filter/ActAndSeq.vue index 8964bd4..5d2a400 100644 --- a/src/components/Discover/Map/Filter/ActAndSeq.vue +++ b/src/components/Discover/Map/Filter/ActAndSeq.vue @@ -4,7 +4,7 @@ class="bg-neutral-10 border border-neutral-300 rounded-xl px-4 w-full h-full" >
-

Activity List ({{ data.length }})

+

Activity List ({{ data.length }})

- Sequence ({{ listSeq.length }}) + Sequence ({{ listSeq.length }})

close
diff --git a/src/components/Discover/Map/Filter/ActOcc.vue b/src/components/Discover/Map/Filter/ActOcc.vue index 3372511..eddbd64 100644 --- a/src/components/Discover/Map/Filter/ActOcc.vue +++ b/src/components/Discover/Map/Filter/ActOcc.vue @@ -3,7 +3,7 @@ class="bg-neutral-10 border border-neutral-300 rounded-xl px-4 w-full h-full" >
-

{{ tableTitle }} ({{ tableData.length }})

+

{{ tableTitle }} ({{ tableData.length }})

-

{{ tableTitle }} ({{ data.length }})

+

{{ tableTitle }} ({{ data.length }})

Log Timeframe

- {{ statData.started_at }}  - ~ {{ statData.completed_at }} + {{ statData.started_at }}  + ~ {{ statData.completed_at }}
  • diff --git a/src/components/durationjs.vue b/src/components/durationjs.vue index eb88954..a246be9 100644 --- a/src/components/durationjs.vue +++ b/src/components/durationjs.vue @@ -98,7 +98,7 @@ const props = defineProps({ }, size: { type: String, - default: false, + default: "md", required: true, }, value: { diff --git a/src/views/AccountManagement/MyAccount.vue b/src/views/AccountManagement/MyAccount.vue index aeb470d..78f6114 100644 --- a/src/views/AccountManagement/MyAccount.vue +++ b/src/views/AccountManagement/MyAccount.vue @@ -79,7 +79,7 @@