1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01: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,
"correctness": {
"noUnsafeOptionalChaining": "off",
"useExhaustiveDependencies": "off"
"useExhaustiveDependencies": "off",
"noUnusedImports": "warn"
},
"complexity": {
"noBannedTypes": "off",

View File

@ -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: <explanation>
import React from 'react';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import CodeBlock from '@theme/CodeBlock';

View File

@ -61,8 +61,10 @@
**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 './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 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';
const Component = () => {

View File

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