Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

refactor: fix eslint fixable errors/warnings

Abdullah Atta0a6cc165dc1d
diff --git a/.eslintignore b/.eslintignore
index 112a41025..096b7f6be 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -18,6 +18,7 @@ apps/web/public/an.js
# editor
packages/editor/styles/
+packages/editor/languages/
# editor mobile
packages/editor-mobile/build.bundle
\ No newline at end of file
diff --git a/apps/mobile/app/components/launcher/index.js b/apps/mobile/app/components/launcher/index.js
index 7478ca5ac..8139a3689 100644
--- a/apps/mobile/app/components/launcher/index.js
+++ b/apps/mobile/app/components/launcher/index.js
@@ -27,8 +27,7 @@ import { useAppState } from "../../hooks/use-app-state";
import BiometricService from "../../services/biometrics";
import {
eSendEvent,
- presentSheet,
- ToastEvent
+ presentSheet
} from "../../services/event-manager";
import { setRateAppMessage } from "../../services/message";
import PremiumService from "../../services/premium";
diff --git a/apps/mobile/app/components/list-items/reminder/index.tsx b/apps/mobile/app/components/list-items/reminder/index.tsx
index c70475344..a030473dd 100644
--- a/apps/mobile/app/components/list-items/reminder/index.tsx
+++ b/apps/mobile/app/components/list-items/reminder/index.tsx
@@ -29,7 +29,6 @@ import Paragraph from "../../ui/typography/paragraph";
import SelectionWrapper from "../selection-wrapper";
import Icon from "react-native-vector-icons/MaterialCommunityIcons";
import ReminderSheet from "../../sheets/reminder";
-import { formatReminderTime } from "@notesnook/core/collections/reminders";
import { ReminderTime } from "../../ui/reminder-time";
const ReminderItem = React.memo(
diff --git a/apps/mobile/app/components/properties/index.js b/apps/mobile/app/components/properties/index.js
index c6833977f..97c3a109c 100644
--- a/apps/mobile/app/components/properties/index.js
+++ b/apps/mobile/app/components/properties/index.js
@@ -18,7 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import React from "react";
-import { Platform, View, TouchableOpacity } from "react-native";
+import { Platform, View } from "react-native";
import { ScrollView } from "react-native-gesture-handler";
import { db } from "../../common/database";
import { DDS } from "../../services/device-detection";
@@ -37,9 +37,7 @@ import Notebooks from "./notebooks";
import { Synced } from "./synced";
import { Tags } from "./tags";
import { Topics } from "./topics";
-import Icon from "react-native-vector-icons/MaterialCommunityIcons";
import {
- formatReminderTime,
getUpcomingReminder
} from "@notesnook/core/collections/reminders";
import { ReminderTime } from "../ui/reminder-time";
diff --git a/apps/mobile/app/screens/settings/sound-picker.tsx b/apps/mobile/app/screens/settings/sound-picker.tsx
index fd26a7717..228480e51 100644
--- a/apps/mobile/app/screens/settings/sound-picker.tsx
+++ b/apps/mobile/app/screens/settings/sound-picker.tsx
@@ -32,7 +32,6 @@ import SettingsService from "../../services/settings";
import { useSettingStore } from "../../stores/use-setting-store";
import { useThemeStore } from "../../stores/use-theme-store";
import { SIZE } from "../../utils/size";
-import notifee from "@notifee/react-native";
const SoundItem = ({
playingSoundId,
diff --git a/apps/web/src/app.js b/apps/web/src/app.js
index f6629ff91..a0504ce58 100644
--- a/apps/web/src/app.js
+++ b/apps/web/src/app.js
@@ -17,7 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-import React, { useState, Suspense, useMemo, useRef, useEffect } from "react";
+import React, { useState, Suspense, useMemo, useRef } from "react";
import { Box, Flex } from "@theme-ui/components";
import ThemeProvider from "./components/theme-provider";
import useMobile from "./hooks/use-mobile";
diff --git a/packages/editor/src/extensions/clipboard-text-serializer/index.ts b/packages/editor/src/extensions/clipboard-text-serializer/index.ts
index 3efacbeb0..325ea29c2 100644
--- a/packages/editor/src/extensions/clipboard-text-serializer/index.ts
+++ b/packages/editor/src/extensions/clipboard-text-serializer/index.ts
@@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import { Extension, TextSerializer } from "@tiptap/core";
import { Plugin, PluginKey } from "prosemirror-state";
-import { Node as ProseMirrorNode, Schema, Slice } from "prosemirror-model";
+import { Schema, Slice } from "prosemirror-model";
export const ClipboardTextSerializer = Extension.create({
name: "clipboardTextSerializer",
diff --git a/packages/editor/src/toolbar/tools/link.tsx b/packages/editor/src/toolbar/tools/link.tsx
index de6e63190..a8ab6db8f 100644
--- a/packages/editor/src/toolbar/tools/link.tsx
+++ b/packages/editor/src/toolbar/tools/link.tsx
@@ -22,7 +22,7 @@ import { ToolButton } from "../components/tool-button";
import { useCallback, useRef, useState } from "react";
import { ResponsivePresenter } from "../../components/responsive";
import { LinkPopup } from "../popups/link-popup";
-import { useIsMobile, useToolbarLocation } from "../stores/toolbar-store";
+import { useToolbarLocation } from "../stores/toolbar-store";
import { MoreTools } from "../components/more-tools";
import { useRefValue } from "../../hooks/use-ref-value";
import { findMark, selectionToOffset } from "../../utils/prosemirror";