Skip to content

Commit 206ce7a

Browse files
committed
@typescript-eslint/consistent-type-imports
1 parent d7c5f6d commit 206ce7a

File tree

20 files changed

+15
-26
lines changed

20 files changed

+15
-26
lines changed

eslint.config.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ export default [
1717
},
1818
{
1919
rules: {
20-
'@typescript-eslint/consistent-type-imports': 'off',
21-
'no-promise-executor-return': 'off',
2220
'@typescript-eslint/no-explicit-any': 'off',
21+
'no-promise-executor-return': 'off',
2322
'no-param-reassign': 'off',
2423
'no-void': 'off',
2524
'no-console': 'off',

src/components/ActionCard/ActionCard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Link from '@docusaurus/Link';
22
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
3-
import React from 'react';
43
import styled from 'styled-components';
54

65
import { HorizontalTile, theme } from '@apify-packages/ui-library';

src/components/ActorTemplates/ActorTemplates.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Link from '@docusaurus/Link';
22
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
3-
import React,
4-
{
3+
import React, {
54
useState,
65
useEffect,
76
} from 'react';

src/components/ApiLink.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import Link from '@docusaurus/Link';
22
import { useDocsVersion } from '@docusaurus/plugin-content-docs/client';
33
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
4-
import React from 'react';
54

65
const ApiLink = ({ to, children }) => {
76
const { version, isLast } = useDocsVersion();

src/components/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { PropsWithChildren } from 'react';
1+
import type { PropsWithChildren } from 'react';
22
import styled, { css } from 'styled-components';
33

44
import { theme } from '@apify-packages/ui-library';

src/components/Card.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Link from '@docusaurus/Link';
22
import { useColorMode } from '@docusaurus/theme-common';
33
import clsx from 'clsx';
4-
import React, { useEffect, useState } from 'react';
4+
import { useEffect, useState } from 'react';
55

66
import styles from './Cards.module.css';
77

src/components/CardGrid.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from 'react';
2-
31
import styles from './CardGrid.module.css';
42

53
export default function CardGrid({ children }) {

src/components/CardWithIcon/CardWithIcon.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import Link from '@docusaurus/Link';
22
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
3-
import React from 'react';
43

54
import { VerticalTile, theme } from '@apify-packages/ui-library';
65

src/components/CardWithImageAndContent/ImageWithContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import type React from 'react';
22

33
import styles from './styles.module.css';
44

src/components/ChangeLog/ChangeLog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Link from '@docusaurus/Link';
2-
import React, { useState, useEffect } from 'react';
2+
import { useState, useEffect } from 'react';
33

44
import styles from './styles.module.css';
55

0 commit comments

Comments
 (0)