tsconfig changes

This commit is contained in:
Max Leiter 2022-05-02 20:14:30 -07:00
parent f52aa10004
commit 60f2532e81
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA
14 changed files with 17 additions and 24 deletions

View file

@ -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"

View file

@ -111,3 +111,5 @@ function verifyFileOwner() {
);
}
}
export default program;

View file

@ -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"];

View file

@ -2,7 +2,7 @@
import Network from "models/network";
import Msg from "models/msg";
import Msg from "../../models/msg";
const commands = ["query", "msg", "say"];

View file

@ -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"];

View file

@ -1,6 +1,6 @@
"use strict";
import Msg from "models/msg";
import Msg from "../../models/msg";
const commands = ["topic"];

View file

@ -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;

View file

@ -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();

View file

@ -1,6 +1,6 @@
"use strict";
import Msg from "models/msg";
import Msg from "../../models/msg";
import Chan from "../../models/chan";

View file

@ -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
}
}

View file

@ -1,4 +1,4 @@
import Msg from "models/msg";
import Msg from "../../models/msg";
declare global {
type Message = Msg;

View file

@ -1,4 +1,4 @@
import Msg from "models/msg";
import Msg from "../../models/msg";
type Preview = {
type: string;

View file

@ -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. */,

View file

@ -7,7 +7,7 @@
"@client/*": ["client/*"]
}
},
"exclude": ["./node_modules", "./public/*"],
"exclude": ["./node_modules"],
"references": [
{
"path": "./src,"