From fce3044f946ff4a4bca73ba83bd0442625ca4537 Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Mon, 25 May 2026 03:35:30 +0300 Subject: [PATCH] fix: front type check --- frontend/eslint.config.ts | 4 +++- frontend/src/components/ui/DataTable.vue | 15 ++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/frontend/eslint.config.ts b/frontend/eslint.config.ts index 4b4d3f3..b6deff1 100644 --- a/frontend/eslint.config.ts +++ b/frontend/eslint.config.ts @@ -5,6 +5,8 @@ import pluginOxlint from 'eslint-plugin-oxlint' import skipFormatting from 'eslint-config-prettier/flat' import vueScopedCss from 'eslint-plugin-vue-scoped-css' +type VueTsConfig = Parameters[number] + // To allow more languages other than `ts` in `.vue` files, uncomment the following lines: // import { configureVueProject } from '@vue/eslint-config-typescript' // configureVueProject({ scriptLangs: ['ts', 'tsx'] }) @@ -20,7 +22,7 @@ export default defineConfigWithVueTs( ...pluginVue.configs['flat/essential'], vueTsConfigs.recommended, - ...vueScopedCss.configs.recommended, + ...(vueScopedCss.configs.recommended as VueTsConfig[]), ...pluginOxlint.buildFromOxlintConfigFile('.oxlintrc.json'), diff --git a/frontend/src/components/ui/DataTable.vue b/frontend/src/components/ui/DataTable.vue index a241d63..0bb1a2a 100644 --- a/frontend/src/components/ui/DataTable.vue +++ b/frontend/src/components/ui/DataTable.vue @@ -1,8 +1,17 @@