chore: Adds initial support for eslint.

This commit is contained in:
greysoh 2024-05-10 11:46:22 -04:00
parent 8b4f3715e9
commit 7e80b298a2
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
34 changed files with 3441 additions and 649 deletions

View file

@ -69,7 +69,7 @@ export function route(instance: PassyFireBackendProvider) {
},
},
(req, res) => {
// @ts-ignore
// @ts-expect-error
const body: {
username: string;
password: string;
@ -115,7 +115,7 @@ export function route(instance: PassyFireBackendProvider) {
},
},
async (req, res) => {
// @ts-ignore
// @ts-expect-error
const body: {
token: string;
} = req.body;
@ -132,7 +132,7 @@ export function route(instance: PassyFireBackendProvider) {
req.hostname.indexOf(":") + 1,
);
// @ts-ignore
// @ts-expect-error
// parseInt(...) can take a number just fine, at least in Node.JS
const port = parseInt(unparsedPort == "" ? proxiedPort : unparsedPort);