diff --git a/biome.json b/biome.json
index 2fa6846b64..9bf08ad553 100644
--- a/biome.json
+++ b/biome.json
@@ -1,12 +1,30 @@
{
- "$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
+ "$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
- "recommended": true
+ "recommended": true,
+ "style": {
+ "noUselessElse": "off"
+ }
}
- }
+ },
+ "overrides": [
+ {
+ "include": ["*.vue"],
+ "linter": {
+ "rules": {
+ "style": {
+ "useImportType": "warn",
+ "useShorthandFunctionType": "warn",
+ "useTemplate": "warn",
+ "noNonNullAssertion": "off"
+ }
+ }
+ }
+ }
+ ]
}
diff --git a/packages/client/.eslintrc.json b/packages/client/.eslintrc.json
index 1afa80de9f..b0e97b2fa6 100644
--- a/packages/client/.eslintrc.json
+++ b/packages/client/.eslintrc.json
@@ -14,6 +14,7 @@
"caughtErrorsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
- ]
+ ],
+ "vue/no-setup-props-destructure": "off"
}
}
diff --git a/packages/client/package.json b/packages/client/package.json
index 8585bd1834..0df54925d3 100644
--- a/packages/client/package.json
+++ b/packages/client/package.json
@@ -8,6 +8,7 @@
"build:debug": "pnpm run build",
"lint": "pnpm biome check **/*.ts --apply ; pnpm run lint:vue",
"lint:vue": "pnpm eslint src --fix '**/*.vue' --cache ; pnpm run format",
+ "types:check": "pnpm vue-tsc --noEmit",
"format": "pnpm biome format * --write"
},
"devDependencies": {
@@ -86,6 +87,7 @@
"vue": "3.4.21",
"vue-draggable-plus": "^0.3.5",
"vue-plyr": "^7.0.0",
- "vue-prism-editor": "2.0.0-alpha.2"
+ "vue-prism-editor": "2.0.0-alpha.2",
+ "vue-tsc": "2.0.6"
}
}
diff --git a/packages/client/src/components/MkChannelList.vue b/packages/client/src/components/MkChannelList.vue
index d6c9a44c4e..15f199c90f 100644
--- a/packages/client/src/components/MkChannelList.vue
+++ b/packages/client/src/components/MkChannelList.vue
@@ -24,13 +24,14 @@