diff --git a/biome.json b/biome.json index 16bb6507c3..3dd0492085 100644 --- a/biome.json +++ b/biome.json @@ -6,7 +6,8 @@ "recommended": true, "correctness": { "noUnsafeOptionalChaining": "off", - "useExhaustiveDependencies": "off" + "useExhaustiveDependencies": "off", + "noUnusedImports": "warn" }, "complexity": { "noBannedTypes": "off", diff --git a/website/src/components/ApiRequest/index.tsx b/website/src/components/ApiRequest/index.tsx index d6246261af..6548bd095d 100644 --- a/website/src/components/ApiRequest/index.tsx +++ b/website/src/components/ApiRequest/index.tsx @@ -8,8 +8,10 @@ be necessary to separate into multiple components based on request types, for instance. -**/ -import type React from 'react'; + **/ + +// biome-ignore lint/style/useImportType: +import React from 'react'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import CodeBlock from '@theme/CodeBlock'; diff --git a/website/src/components/Figure/Figure.tsx b/website/src/components/Figure/Figure.tsx index 2458efd29f..89d7e2ea20 100644 --- a/website/src/components/Figure/Figure.tsx +++ b/website/src/components/Figure/Figure.tsx @@ -61,8 +61,10 @@ **separate** information to what the fig caption does. -**/ -import type React from 'react'; + **/ + +// biome-ignore lint/style/useImportType: +import React from 'react'; import useBaseUrl from '@docusaurus/useBaseUrl'; import './styles.module.css'; diff --git a/website/src/components/VideoContent.jsx b/website/src/components/VideoContent.jsx index c1a06e7c75..3e6e6b0d40 100644 --- a/website/src/components/VideoContent.jsx +++ b/website/src/components/VideoContent.jsx @@ -1,3 +1,4 @@ +// biome-ignore lint/correctness/noUnusedImports: Needs this for React to work import React from 'react'; import Admonition from '@theme/Admonition'; diff --git a/website/src/components/unleash-academy/Banner.jsx b/website/src/components/unleash-academy/Banner.jsx index 797a9f3e4c..7b4668cff4 100644 --- a/website/src/components/unleash-academy/Banner.jsx +++ b/website/src/components/unleash-academy/Banner.jsx @@ -1,3 +1,4 @@ +// biome-ignore lint/correctness/noUnusedImports: Needs this for React to work import React from 'react'; const Component = () => { diff --git a/website/src/components/unleash-academy/CourseBanner.jsx b/website/src/components/unleash-academy/CourseBanner.jsx index fd5cf0ff60..71c1db5c8b 100644 --- a/website/src/components/unleash-academy/CourseBanner.jsx +++ b/website/src/components/unleash-academy/CourseBanner.jsx @@ -1,3 +1,4 @@ +// biome-ignore lint/correctness/noUnusedImports: Needs this for React to work import React from 'react'; const Component = ({ level, description }) => { diff --git a/website/src/components/unleash-academy/Links.jsx b/website/src/components/unleash-academy/Links.jsx index 23118decbd..391039a8ae 100644 --- a/website/src/components/unleash-academy/Links.jsx +++ b/website/src/components/unleash-academy/Links.jsx @@ -1,3 +1,4 @@ +// biome-ignore lint/correctness/noUnusedImports: Needs this for React to work import React from 'react'; import Link from '@docusaurus/Link'; diff --git a/website/src/icons/close.tsx b/website/src/icons/close.tsx index 5a96f3bfd4..35bbd74573 100644 --- a/website/src/icons/close.tsx +++ b/website/src/icons/close.tsx @@ -1,3 +1,4 @@ +// biome-ignore lint/correctness/noUnusedImports: Needs this for React to work import React from 'react'; import styles from './styles.module.css';