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