diff --git a/webui/.eslintrc.cjs b/webui/.eslintrc.cjs index b64731a0..5ee7e2ac 100644 --- a/webui/.eslintrc.cjs +++ b/webui/.eslintrc.cjs @@ -3,12 +3,11 @@ require('@rushstack/eslint-patch/modern-module-resolution') module.exports = { root: true, - 'extends': [ - 'plugin:vue/vue3-essential', - 'eslint:recommended', - '@vue/eslint-config-prettier/skip-formatting' - ], + extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-prettier/skip-formatting'], parserOptions: { ecmaVersion: 'latest' + }, + rules: { + 'vue/multi-word-component-names': 'off' } } diff --git a/webui/src/components/FunctionCapabilities.vue b/webui/src/components/FunctionCapabilities.vue index 0e8ecaa2..1e4b66f9 100644 --- a/webui/src/components/FunctionCapabilities.vue +++ b/webui/src/components/FunctionCapabilities.vue @@ -68,11 +68,6 @@ const filterMode = ref('lenient') const sourceDialogVisible = ref(false) const currentSource = ref('') -const showSource = (source) => { - currentSource.value = source - sourceDialogVisible.value = true -} - import { parseFunctionCapabilities } from '../utils/rdocParser' const tableData = computed(() => parseFunctionCapabilities(props.data, props.showLibraryRules)) diff --git a/webui/src/components/NamespaceChart.vue b/webui/src/components/NamespaceChart.vue index 47fea3bf..0d53dd90 100644 --- a/webui/src/components/NamespaceChart.vue +++ b/webui/src/components/NamespaceChart.vue @@ -28,7 +28,7 @@ const createSunburstData = (rules) => { let currentId = '' let parent = '' - parts.forEach((part, index) => { + parts.forEach((part) => { currentId = currentId ? `${currentId}/${part}` : part if (!data.ids.includes(currentId)) { diff --git a/webui/src/components/RuleMatchesTable.vue b/webui/src/components/RuleMatchesTable.vue index 514b3ab0..899f1155 100644 --- a/webui/src/components/RuleMatchesTable.vue +++ b/webui/src/components/RuleMatchesTable.vue @@ -47,21 +47,17 @@ :class="{ 'w-3': col.field === 'mbc', 'w-full': col.field === 'name' }" filterMatchMode="contains" > - - - -