Skip to content

Commit

Permalink
Merge pull request #269 from penge/linter
Browse files Browse the repository at this point in the history
Remove no longer needed linter exceptions
  • Loading branch information
penge authored Jun 21, 2021
2 parents 7675c09 + 2b26bf9 commit 08740b1
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/notes/components/Content.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import { useCallback, useEffect, useRef } from "preact/hooks";
import keyboardShortcuts, { KeyboardShortcut } from "notes/keyboard-shortcuts";
import commands from "../toolbar/commands";
Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/ContextMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import { useState, useRef, useEffect } from "preact/hooks";

export interface ContextMenuProps {
Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/Drag.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import { Ref, useCallback } from "preact/hooks";

let m_pos: number;
Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/NoteInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import { Note } from "shared/storage/schema";
import parseDate from "shared/date/parse-date";
import formatNumber from "shared/number/format-number";
Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/Overlay.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import { useEffect } from "preact/hooks";

interface OverlayProps {
Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/Tooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h, render, cloneElement, Fragment } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h, render, cloneElement, Fragment } from "preact";
import { useRef, useState, useEffect, useMemo, useCallback } from "preact/hooks";

interface TooltipProps {
Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/modals/DeleteNoteModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import Modal from "./Modal";

export interface DeleteNoteModalProps {
Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/modals/InsertImageModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import Modal from "./Modal";

export interface InsertImageModalProps {
Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/modals/InsertLinkModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import Modal from "./Modal";

export interface InsertLinkModalProps {
Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/modals/Modal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import { useRef, useEffect, useCallback } from "preact/hooks";
import keyboardShortcuts, { KeyboardShortcut } from "notes/keyboard-shortcuts";

Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/modals/NewNoteModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import Modal from "./Modal";

export interface NewNoteModalProps {
Expand Down
2 changes: 1 addition & 1 deletion src/notes/components/modals/RenameNoteModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h } from "preact";
import Modal from "./Modal";

export interface RenameNoteModalProps {
Expand Down
2 changes: 1 addition & 1 deletion src/options/Font.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h, Fragment } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h, Fragment } from "preact";
import { useState, useEffect } from "preact/hooks";
import clsx from "clsx";
import { RegularFont, GoogleFont } from "shared/storage/schema";
Expand Down
2 changes: 1 addition & 1 deletion src/options/Options.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h, Fragment } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h, Fragment } from "preact";
import { useCallback } from "preact/hooks";
import { Sync } from "shared/storage/schema";
import formatDate from "shared/date/format-date";
Expand Down
2 changes: 1 addition & 1 deletion src/options/Size.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h, Fragment } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h, Fragment } from "preact";

interface SizeProps {
size?: number
Expand Down
2 changes: 1 addition & 1 deletion src/options/Theme.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { h, Fragment } from "preact"; // eslint-disable-line @typescript-eslint/no-unused-vars
import { h, Fragment } from "preact";
import { Theme } from "shared/storage/schema";
import { capitalize } from "shared/string/capitalize-string";

Expand Down

0 comments on commit 08740b1

Please sign in to comment.