mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-18 14:16:36 +02:00
Replace vetur with volar, small types cleanup
This commit is contained in:
parent
ee887197c9
commit
19d5beb562
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
|
@ -3,7 +3,8 @@
|
||||||
"EditorConfig.EditorConfig",
|
"EditorConfig.EditorConfig",
|
||||||
"esbenp.prettier-vscode",
|
"esbenp.prettier-vscode",
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"octref.vetur"
|
"Vue.volar",
|
||||||
|
"Vue.vscode-typescript-vue-plugin"
|
||||||
],
|
],
|
||||||
"unwantedRecommendations": []
|
"unwantedRecommendations": []
|
||||||
}
|
}
|
||||||
|
|
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"vetur.format.enable": false,
|
|
||||||
"prettier.useEditorConfig": true,
|
"prettier.useEditorConfig": true,
|
||||||
"prettier.requireConfig": true,
|
"prettier.requireConfig": true,
|
||||||
"prettier.disableLanguages": [],
|
"prettier.disableLanguages": [],
|
||||||
|
|
19
client/js/types.d.ts
vendored
19
client/js/types.d.ts
vendored
|
@ -8,13 +8,6 @@ import {Mention} from "../../src/client";
|
||||||
import {ClientConfiguration} from "../../src/server";
|
import {ClientConfiguration} from "../../src/server";
|
||||||
import {LinkPreview} from "../../src/plugins/irc-events/link";
|
import {LinkPreview} from "../../src/plugins/irc-events/link";
|
||||||
|
|
||||||
// declare module '*.vue' {
|
|
||||||
// import { defineComponent } from 'vue';
|
|
||||||
|
|
||||||
// const component: ReturnType<typeof defineComponent>;
|
|
||||||
// export default component;
|
|
||||||
// }
|
|
||||||
|
|
||||||
interface LoungeWindow extends Window {
|
interface LoungeWindow extends Window {
|
||||||
g_TheLoungeRemoveLoading?: () => void;
|
g_TheLoungeRemoveLoading?: () => void;
|
||||||
navigator: Window["navigator"] & {
|
navigator: Window["navigator"] & {
|
||||||
|
@ -74,18 +67,6 @@ type ClientLinkPreview = LinkPreview & {
|
||||||
sourceLoaded?: boolean;
|
sourceLoaded?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
declare module "*.vue" {
|
|
||||||
const Component: ReturnType<typeof defineComponent>;
|
|
||||||
export default Component;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module "vue" {
|
|
||||||
// interface ComponentCustomProperties {
|
|
||||||
// // TODO: Vue struggles with typing using the options API, so we should switch to composition API
|
|
||||||
// // $root
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module "vue-router" {
|
declare module "vue-router" {
|
||||||
import Vue from "./vue";
|
import Vue from "./vue";
|
||||||
|
|
||||||
|
|
7
client/shims-vue.d.ts
vendored
Normal file
7
client/shims-vue.d.ts
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
// https://vuejs.github.io/vetur/guide/setup.html#vue3
|
||||||
|
declare module "*.vue" {
|
||||||
|
import type {DefineComponent} from "vue";
|
||||||
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||||
|
const component: DefineComponent<{}, {}, any>;
|
||||||
|
export default component;
|
||||||
|
}
|
|
@ -11,6 +11,5 @@ require:
|
||||||
# - "jsdom-global/register"
|
# - "jsdom-global/register"
|
||||||
- "test/fixtures/env.ts"
|
- "test/fixtures/env.ts"
|
||||||
globals:
|
globals:
|
||||||
- "__VUE_OPTIONS_API__"
|
|
||||||
- "__VUE_PROD_DEVTOOLS__"
|
- "__VUE_PROD_DEVTOOLS__"
|
||||||
- "__VUE__"
|
- "__VUE__"
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
projects: ["./client/tsconfig.json"],
|
|
||||||
};
|
|
Loading…
Reference in a new issue