Skip to content

Commit 5027b3f

Browse files
committed
build(dev-deps): bump eslint and config to latest
1 parent 43abc80 commit 5027b3f

25 files changed

+183
-185
lines changed

components/AppBarAction.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import type { ReactElement, ReactNode } from "react";
2-
import {
3-
AppBarAction as RMDAppBarAction,
4-
AppBarActionProps as RMDAppBarActionProps,
5-
Tooltip,
6-
useTooltip,
7-
} from "react-md";
2+
import type { AppBarActionProps as RMDAppBarActionProps } from "react-md";
3+
import { AppBarAction as RMDAppBarAction, Tooltip, useTooltip } from "react-md";
84

95
interface AppBarActionProps extends RMDAppBarActionProps {
106
id: string;

components/ErrorHeader.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import type { ReactElement } from "react";
22
import filesize from "filesize";
3-
import {
3+
import type {
44
FileExtensionError,
55
FileSizeError,
6-
isFileSizeError,
7-
isTooManyFilesError,
8-
Typography,
96
TooManyFilesError,
107
} from "react-md";
8+
import { isFileSizeError, isTooManyFilesError, Typography } from "react-md";
119

1210
interface ErrorHeaderProps {
1311
error: TooManyFilesError | FileSizeError | FileExtensionError;

components/ErrorModal.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { ReactElement, useEffect, useState } from "react";
1+
import type { ReactElement } from "react";
2+
import { useEffect, useState } from "react";
3+
import type { FileValidationError } from "react-md";
24
import {
35
Button,
46
Dialog,
57
DialogContent,
68
DialogFooter,
79
DialogHeader,
810
DialogTitle,
9-
FileValidationError,
1011
} from "react-md";
1112

1213
import { ErrorRenderer } from "./ErrorRenderer";

components/ErrorRenderer.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
import { Fragment, ReactElement } from "react";
1+
import type { ReactElement } from "react";
2+
import { Fragment } from "react";
23
import filesize from "filesize";
3-
import {
4-
FileValidationError,
5-
isFileSizeError,
6-
List,
7-
SimpleListItem,
8-
Typography,
9-
} from "react-md";
4+
import type { FileValidationError } from "react-md";
5+
import { isFileSizeError, List, SimpleListItem, Typography } from "react-md";
106

117
import { ErrorHeader } from "./ErrorHeader";
128

components/FileDropzone.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import cn from "classnames";
2-
import { ReactElement, useEffect, useState } from "react";
2+
import type { ReactElement } from "react";
3+
import { useEffect, useState } from "react";
34
import {
45
FileUploadSVGIcon,
56
Typography,

components/Header.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ReactElement, useState } from "react";
1+
import type { ReactElement } from "react";
2+
import { useState } from "react";
23
import {
34
AppBar,
45
AppBarTitle,

components/MarkdownEditor.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import cn from "classnames";
2-
import { ReactElement, useRef } from "react";
2+
import type { ReactElement } from "react";
3+
import { useRef } from "react";
34
import { TextArea } from "react-md";
45

56
import styles from "./MarkdownEditor.module.scss";

components/MarkdownPreview.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import Prism from "prismjs";
22
import type { ReactElement } from "react";
33

4-
import { DangerouslyHighlightCode, GetCodeLanguage, Markdown } from "../src";
4+
import type { DangerouslyHighlightCode, GetCodeLanguage } from "../src";
5+
import { Markdown } from "../src";
56
import styles from "./MarkdownPreview.module.scss";
67
import { renderers } from "./renderers";
78
import { usePlayground } from "./usePlayground";

components/PanelResizer.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "../everything" as *;
1+
@use '../everything' as *;
22

33
.separator {
44
@include rmd-divider-theme(background-color);

components/PanelResizer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* eslint-disable jsx-a11y/role-supports-aria-props */
22
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
33
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */
4-
import { ReactElement, useEffect, useState } from "react";
4+
import type { ReactElement } from "react";
5+
import { useEffect, useState } from "react";
56

67
import styles from "./PanelResizer.module.scss";
78
import {

0 commit comments

Comments
 (0)