1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-19 01:17:18 +02:00

fix(website): failing build due to failure to import React

This commit is contained in:
Christopher Kolstad 2024-03-18 15:23:51 +01:00
parent e4af2fbcd5
commit a3d06bd57f
No known key found for this signature in database
GPG Key ID: D9041DC670F032F3
8 changed files with 15 additions and 5 deletions

View File

@ -6,7 +6,8 @@
"recommended": true, "recommended": true,
"correctness": { "correctness": {
"noUnsafeOptionalChaining": "off", "noUnsafeOptionalChaining": "off",
"useExhaustiveDependencies": "off" "useExhaustiveDependencies": "off",
"noUnusedImports": "warn"
}, },
"complexity": { "complexity": {
"noBannedTypes": "off", "noBannedTypes": "off",

View File

@ -8,8 +8,10 @@
be necessary to separate into multiple components based on request be necessary to separate into multiple components based on request
types, for instance. types, for instance.
**/ **/
import type React from 'react';
// biome-ignore lint/style/useImportType: <explanation>
import React from 'react';
import Tabs from '@theme/Tabs'; import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem'; import TabItem from '@theme/TabItem';
import CodeBlock from '@theme/CodeBlock'; import CodeBlock from '@theme/CodeBlock';

View File

@ -61,8 +61,10 @@
**separate** information to what the fig caption does. **separate** information to what the fig caption does.
**/ **/
import type React from 'react';
// biome-ignore lint/style/useImportType: <explanation>
import React from 'react';
import useBaseUrl from '@docusaurus/useBaseUrl'; import useBaseUrl from '@docusaurus/useBaseUrl';
import './styles.module.css'; import './styles.module.css';

View File

@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: Needs this for React to work
import React from 'react'; import React from 'react';
import Admonition from '@theme/Admonition'; import Admonition from '@theme/Admonition';

View File

@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: Needs this for React to work
import React from 'react'; import React from 'react';
const Component = () => { const Component = () => {

View File

@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: Needs this for React to work
import React from 'react'; import React from 'react';
const Component = ({ level, description }) => { const Component = ({ level, description }) => {

View File

@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: Needs this for React to work
import React from 'react'; import React from 'react';
import Link from '@docusaurus/Link'; import Link from '@docusaurus/Link';

View File

@ -1,3 +1,4 @@
// biome-ignore lint/correctness/noUnusedImports: Needs this for React to work
import React from 'react'; import React from 'react';
import styles from './styles.module.css'; import styles from './styles.module.css';