From cad426b78707bf8a8ae2ed5f6afc79a0899bf5eb Mon Sep 17 00:00:00 2001 From: bryzZz Date: Sun, 1 Oct 2023 15:12:05 +0800 Subject: [PATCH] fix linting proplems --- .eslintrc.json | 2 ++ src/renderer/src/lib/data/EditorManager.ts | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index adf508d11..e5ce9a1f9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -20,6 +20,8 @@ } }, "rules": { + "react-hooks/rules-of-hooks": "warn", + "@typescript-eslint/no-this-alias": "warn", "no-prototype-builtins": "off", "import/default": "off", "@typescript-eslint/no-inferrable-types": "off", // чтобы можно было указывать тип даже когда он может определиться сам diff --git a/src/renderer/src/lib/data/EditorManager.ts b/src/renderer/src/lib/data/EditorManager.ts index 3ae8f0cf2..304f59fd9 100644 --- a/src/renderer/src/lib/data/EditorManager.ts +++ b/src/renderer/src/lib/data/EditorManager.ts @@ -53,8 +53,6 @@ export class EditorManager { resetEditor?: () => void; - constructor() {} - init(basename: string | null, name: string, elements: Elements) { this.data = emptyEditorData();