lint
This commit is contained in:
@@ -3,7 +3,7 @@ import type { EditorView } from "prosemirror-view";
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import breakpoint from "styled-components-breakpoint";
|
import breakpoint from "styled-components-breakpoint";
|
||||||
import { sanitizeUrl } from "@shared/utils/urls";
|
import { sanitizeUrl } from "../../utils/urls";
|
||||||
import { ComponentProps } from "../types";
|
import { ComponentProps } from "../types";
|
||||||
import ImageZoom from "./ImageZoom";
|
import ImageZoom from "./ImageZoom";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Plugin } from "prosemirror-state";
|
import { Plugin } from "prosemirror-state";
|
||||||
import { getDataTransferFiles } from "@shared/utils/files";
|
import { getDataTransferFiles } from "../../utils/files";
|
||||||
import insertFiles, { Options } from "../commands/insertFiles";
|
import insertFiles, { Options } from "../commands/insertFiles";
|
||||||
|
|
||||||
const uploadPlugin = (options: Options) =>
|
const uploadPlugin = (options: Options) =>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Node, Schema } from "prosemirror-model";
|
import { Node, Schema } from "prosemirror-model";
|
||||||
import textBetween from "@shared/editor/lib/textBetween";
|
|
||||||
import headingToSlug from "../editor/lib/headingToSlug";
|
import headingToSlug from "../editor/lib/headingToSlug";
|
||||||
|
import textBetween from "../editor/lib/textBetween";
|
||||||
|
|
||||||
export type Heading = {
|
export type Heading = {
|
||||||
/* The heading in plain text */
|
/* The heading in plain text */
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { NavigationNode } from "@shared/types";
|
import type { NavigationNode } from "../types";
|
||||||
import naturalSort from "./naturalSort";
|
import naturalSort from "./naturalSort";
|
||||||
|
|
||||||
type Sort = {
|
type Sort = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { subDays, subMonths, subWeeks, subYears } from "date-fns";
|
import { subDays, subMonths, subWeeks, subYears } from "date-fns";
|
||||||
import { DateFilter } from "@shared/types";
|
import type { DateFilter } from "../types";
|
||||||
|
|
||||||
export function subtractDate(date: Date, period: DateFilter) {
|
export function subtractDate(date: Date, period: DateFilter) {
|
||||||
switch (period) {
|
switch (period) {
|
||||||
|
|||||||
Reference in New Issue
Block a user