Skip to content

Commit 16856e6

Browse files
committed
fix inline type imports
1 parent ffff7e4 commit 16856e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+147
-143
lines changed

.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@typescript-eslint/consistent-type-imports": [
2323
2,
2424
{
25-
"fixStyle": "separate-type-imports"
25+
"fixStyle": "inline-type-imports"
2626
}
2727
],
2828
"@typescript-eslint/no-restricted-imports": [

src/api/endpoints.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type {
33
MutationDefinition,
44
} from "@reduxjs/toolkit/query"
55

6-
import { FetchBaseQuery } from "./baseQuery"
7-
import { TagTypes } from "./tagTypes"
6+
import { type FetchBaseQuery } from "./baseQuery"
7+
import { type TagTypes } from "./tagTypes"
88

99
export type LogoutQuery = null
1010
export type LogoutResult = null

src/components/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react"
2-
import { Provider, ProviderProps } from "react-redux"
3-
import { Action, AnyAction } from "redux"
2+
import { Provider, type ProviderProps } from "react-redux"
3+
import { type Action, type AnyAction } from "redux"
44
import { ThemeProvider, CssBaseline } from "@mui/material"
5-
import { ThemeProviderProps } from "@mui/material/styles/ThemeProvider"
5+
import { type ThemeProviderProps } from "@mui/material/styles/ThemeProvider"
66

77
import {
88
useExternalScript,

src/components/ClickableTooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react"
2-
import { Tooltip, TooltipProps } from "@mui/material"
2+
import { Tooltip, type TooltipProps } from "@mui/material"
33

44
import { wrap } from "../helpers"
55

src/components/CopyIconButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from "react"
2-
import { IconButton, IconButtonProps } from "@mui/material"
1+
import type React from "react"
2+
import { IconButton, type IconButtonProps } from "@mui/material"
33
import { ContentCopy as ContentCopyIcon } from "@mui/icons-material"
44

55
export interface CopyIconButtonProps extends Omit<IconButtonProps, "onClick"> {

src/components/Countdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react"
2-
import { Typography, TypographyProps } from "@mui/material"
2+
import { Typography, type TypographyProps } from "@mui/material"
33

44
import { useCountdown } from "../hooks"
55

src/components/ElevatedAppBar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React from "react"
22
import {
33
AppBar,
4-
AppBarProps,
4+
type AppBarProps,
55
Toolbar,
6-
ToolbarProps,
6+
type ToolbarProps,
77
useScrollTrigger,
88
Container,
9-
ContainerProps,
9+
type ContainerProps,
1010
} from "@mui/material"
1111

1212
export interface ElevatedAppBarProps extends Omit<AppBarProps, "position"> {

src/components/Image.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from "react"
2-
import { Box, BoxProps } from "@mui/material"
1+
import type React from "react"
2+
import { Box, type BoxProps } from "@mui/material"
33

44
import { openInNewTab } from "../helpers"
55

src/components/ItemizedList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from "react"
2-
import { List, ListProps, ListItem, ListItemText } from "@mui/material"
1+
import type React from "react"
2+
import { List, type ListProps, type ListItem, type ListItemText } from "@mui/material"
33

44
type ListItemElement = React.ReactElement<typeof ListItem | typeof ListItemText>
55

src/components/OrderedGrid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from "react"
2-
import { Unstable_Grid2 as Grid, Grid2Props } from "@mui/material"
1+
import type React from "react"
2+
import { Unstable_Grid2 as Grid, type Grid2Props } from "@mui/material"
33

44
interface ItemProps
55
extends Omit<

0 commit comments

Comments
 (0)