From de00a043c34426dd08688a5b22386b9672eddde9 Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Mon, 22 Jan 2024 19:09:48 +0000 Subject: [PATCH] Update lint rules for templates --- .eslintrc.js | 10 ++++++++++ packages/create/templates/plugin-ts/web/plugin.tsx | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 3cf36d34..fd8becce 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -93,6 +93,16 @@ module.exports = { "node/shebang": "off", }, }, + { + "files": [ + "packages/create/templates/**/*.ts?(x)", + "packages/create/templates/**/*.js?(x)", + ], + "rules": { + "node/no-missing-require": "off", + "node/no-missing-import": "off", + }, + }, ], "rules": { diff --git a/packages/create/templates/plugin-ts/web/plugin.tsx b/packages/create/templates/plugin-ts/web/plugin.tsx index 3d329883..1d623443 100644 --- a/packages/create/templates/plugin-ts/web/plugin.tsx +++ b/packages/create/templates/plugin-ts/web/plugin.tsx @@ -2,7 +2,7 @@ import React, { useContext, useEffect, useState } from "react"; // import { } from "antd"; import { - BaseWebPlugin, PageLayout, Control, ControlContext, notifyErrorHandler + BaseWebPlugin, PageLayout, Control, ControlContext, notifyErrorHandler, } from "@clusterio/web_ui"; import * as lib from "@clusterio/lib";