diff --git a/.eslintrc.json b/.eslintrc.json index c801876..94dbac5 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -54,6 +54,7 @@ ], "no-restricted-syntax": "off", "react/jsx-props-no-spreading": "off", - "react/prop-types": "off" + "react/prop-types": "off", + "react/react-in-jsx-scope": "off" } } diff --git a/package.json b/package.json index d60372d..234a2d7 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "tsc && vite build", "preview": "vite preview", "tauri": "tauri", - "lint": "eslint --ext .ts,.tsx,.js,.jsx src", + "lint": "tsc --noEmit && eslint --ext .ts,.tsx,.js,.jsx src", "format": "prettier --write src" }, "dependencies": { diff --git a/src/App.tsx b/src/App.tsx index ba6ea5c..a550bbc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { DockviewReact, DockviewReadyEvent } from "dockview"; import PluginManager from "./lib/PluginManager"; import CasPlugin from "./plugins/cas/CasPlugin"; diff --git a/src/plugins/cas/CasPanel.tsx b/src/plugins/cas/CasPanel.tsx index 789c5e3..8c57042 100644 --- a/src/plugins/cas/CasPanel.tsx +++ b/src/plugins/cas/CasPanel.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import { EditableMathField, StaticMathField, addStyles } from "react-mathquill"; import { ComputeEngine } from "@cortex-js/compute-engine"; import { EqualIcon } from "lucide-react"; diff --git a/src/plugins/cas/CasPlugin.tsx b/src/plugins/cas/CasPlugin.tsx index ee87997..9297a29 100644 --- a/src/plugins/cas/CasPlugin.tsx +++ b/src/plugins/cas/CasPlugin.tsx @@ -1,5 +1,5 @@ -import React, { ReactNode } from "react"; -import { PluginManager } from "src/lib/PluginManager"; +import { ReactNode } from "react"; +import PluginManager from "src/lib/PluginManager"; import Plugin from "src/types/Plugin"; import { type DbValue } from "src/types/Db"; import CasPanel from "./CasPanel"; diff --git a/src/types/Plugin.ts b/src/types/Plugin.ts index d4789d1..fb96dd0 100644 --- a/src/types/Plugin.ts +++ b/src/types/Plugin.ts @@ -1,4 +1,4 @@ -import { PluginManager } from "src/lib/PluginManager"; +import PluginManager from "src/lib/PluginManager"; export default abstract class Plugin { pluginManager: PluginManager;