Setup typescript-eslint

Configure eslint to work with TypeScript via the typescript-eslint
plugin.
This commit is contained in:
Hornwitser committed 2023-11-19 04:50:07 +01:00
1 parent b78ca31b09
commit af9ed19af0
8 files changed
+55 -21

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
// Note: Run compile_validator script after making changes to this file.
import { TSchema, Type, Static } from "@sinclair/typebox";
import messageValidate from "./message_validate";
// eslint-disable-next-line node/no-missing-import
import messageValidate from "./message_validate"; // generated file
import { StringEnum } from "./composites";
import { AccountRole } from "../plugin";
+1 -1
View File
@@ -1,4 +1,4 @@
/* eslint-disable node/global-require */
/* eslint-disable @typescript-eslint/no-var-requires */
/**
* Helpers for loading plugins in Node.js
* @module lib/plugin_loader
+1 -1
View File
@@ -58,7 +58,7 @@ export async function handlePluginCommand(
let pluginInfo: { name: string };
try {
// eslint-disable-next-line node/global-require
// eslint-disable-next-line @typescript-eslint/no-var-requires
pluginInfo = require(pluginPath).default;
} catch (err: any) {
logger.error(`Unable to import plugin info from ${args.path}:\n${err.stack}`);