mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-07 08:12:19 +02:00
tsconfig changes
This commit is contained in:
parent
f52aa10004
commit
60f2532e81
|
@ -7,15 +7,10 @@
|
|||
// https://v2.vuejs.org/v2/guide/typescript.html?redirect=true#Recommended-Configuration
|
||||
"target": "ES5",
|
||||
"strict": true,
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"lib": ["ES2020", "dom"],
|
||||
"sourceMap": false,
|
||||
"outDir": "./dist",
|
||||
"allowJs": true,
|
||||
"noImplicitAny": false,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"baseUrl": "./",
|
||||
|
||||
"jsx": "preserve"
|
||||
|
|
|
@ -111,3 +111,5 @@ function verifyFileOwner() {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default program;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
import Msg from "models/msg";
|
||||
import Msg from "../../models/msg";
|
||||
import Helper from "helper";
|
||||
|
||||
const commands = ["ignore", "unignore", "ignorelist"];
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import Network from "models/network";
|
||||
|
||||
import Msg from "models/msg";
|
||||
import Msg from "../../models/msg";
|
||||
|
||||
const commands = ["query", "msg", "say"];
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
import Msg from "models/msg";
|
||||
import Msg from "../../models/msg";
|
||||
import Config from "config";
|
||||
|
||||
const commands = ["close", "leave", "part"];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
import Msg from "models/msg";
|
||||
import Msg from "../../models/msg";
|
||||
|
||||
const commands = ["topic"];
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
import Msg from "models/msg";
|
||||
import Msg from "../../models/msg";
|
||||
|
||||
export default <IrcEventHandler>function (irc, network) {
|
||||
const client = this;
|
||||
|
|
|
@ -11,7 +11,7 @@ import storage from "../storage";
|
|||
import log from "log";
|
||||
import Client from "client";
|
||||
import Chan from "models/chan";
|
||||
import Msg from "models/msg";
|
||||
import Msg from "../../models/msg";
|
||||
import {Preview} from "types/plugins/preview";
|
||||
|
||||
const currentFetchPromises = new Map();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
|
||||
import Msg from "models/msg";
|
||||
import Msg from "../../models/msg";
|
||||
|
||||
import Chan from "../../models/chan";
|
||||
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
"files": [
|
||||
"../package.json",
|
||||
"../client/js/constants.js",
|
||||
"../client/js/helpers/ircmessageparser/findLinks.ts",
|
||||
"./index.d.ts"
|
||||
"../client/js/helpers/ircmessageparser/findLinks.ts"
|
||||
],
|
||||
// "exclude": ["../client/*", "./dist/*"],
|
||||
"exclude": ["./dist/*"],
|
||||
|
@ -13,14 +12,8 @@
|
|||
},
|
||||
"include": ["./**/*.ts", "./**/*.js", "./**/*.d.ts"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"types": ["node"],
|
||||
"baseUrl": ".",
|
||||
"noImplicitAny": false,
|
||||
"outDir": "dist",
|
||||
// "resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"moduleResolution": "node"
|
||||
"noImplicitAny": false
|
||||
}
|
||||
}
|
||||
|
|
2
src/types/models/message.d.ts
vendored
2
src/types/models/message.d.ts
vendored
|
@ -1,4 +1,4 @@
|
|||
import Msg from "models/msg";
|
||||
import Msg from "../../models/msg";
|
||||
|
||||
declare global {
|
||||
type Message = Msg;
|
||||
|
|
2
src/types/plugins/preview.d.ts
vendored
2
src/types/plugins/preview.d.ts
vendored
|
@ -1,4 +1,4 @@
|
|||
import Msg from "models/msg";
|
||||
import Msg from "../../models/msg";
|
||||
|
||||
type Preview = {
|
||||
type: string;
|
||||
|
|
|
@ -3,9 +3,12 @@
|
|||
"outDir": "dist",
|
||||
"declaration": true,
|
||||
// "lib": ["es2019" ],
|
||||
"module": "commonjs",
|
||||
"target": "ESNext",
|
||||
"baseUrl": ".",
|
||||
"rootDir": "./",
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"resolveJsonModule": true,
|
||||
"composite": true,
|
||||
"strict": true /* Enable all strict type-checking options. */,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"@client/*": ["client/*"]
|
||||
}
|
||||
},
|
||||
"exclude": ["./node_modules", "./public/*"],
|
||||
"exclude": ["./node_modules"],
|
||||
"references": [
|
||||
{
|
||||
"path": "./src,"
|
||||
|
|
Loading…
Reference in a new issue