refactor: fix eslint fixable errors/warnings

This commit is contained in:
Abdullah Atta
2023-01-16 13:50:58 +05:00
parent c5489e3c4a
commit 0a6cc165dc
8 changed files with 6 additions and 10 deletions

View File

@@ -18,6 +18,7 @@ apps/web/public/an.js
# editor
packages/editor/styles/
packages/editor/languages/
# editor mobile
packages/editor-mobile/build.bundle

View File

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

View File

@@ -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(

View File

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

View File

@@ -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,

View File

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

View File

@@ -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",

View File

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