Skip to content

Commit 924e3b0

Browse files
committed
update docusaurus
1 parent 8ddac32 commit 924e3b0

File tree

6 files changed

+17
-8
lines changed

6 files changed

+17
-8
lines changed

website/docusaurus.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { themes } from 'prism-react-renderer';
2-
31
import type * as Preset from '@docusaurus/preset-classic';
42
import type { Config } from '@docusaurus/types';
3+
import { themes } from 'prism-react-renderer';
54

65
const config: Config = {
76
title: ' ',

website/eslint.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,17 @@ export default tseslint.config(
8686
],
8787

8888
'import/no-default-export': 'error',
89+
'import/order': [
90+
'error',
91+
{
92+
groups: ['builtin', 'external', 'internal', 'parent', 'sibling'],
93+
'newlines-between': 'always',
94+
alphabetize: {
95+
order: 'asc',
96+
caseInsensitive: true,
97+
},
98+
},
99+
],
89100
'import/no-unresolved': 'off',
90101
},
91102
},

website/src/components/MainTitle.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import Tilt from 'react-parallax-tilt';
2-
31
import { useColorMode } from '@docusaurus/theme-common';
2+
import Tilt from 'react-parallax-tilt';
43

54
type MainTitleProps = {
65
children: string;

website/src/components/Rule.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import CodeBlock from '@theme/CodeBlock';
12
import { useState } from 'react';
23
import AnimateHeight from 'react-animate-height';
3-
import CodeBlock from '@theme/CodeBlock';
4+
45
import { cn } from '../utils/cn';
56

67
type RuleProps = {

website/src/components/TableOfContents.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { useState } from 'react';
2-
31
import type { TOCItem } from '@docusaurus/mdx-loader';
42
import TOCInline from '@theme/TOCInline';
3+
import { useState } from 'react';
54

65
export const TableOfContents = ({ items }: { items: ReadonlyArray<TOCItem> }) => {
76
const [isTocExpanded, setIsTocExpanded] = useState(false);

website/src/utils/cn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { twMerge } from 'tailwind-merge';
21
import type { ClassValue } from 'clsx';
32
import clsx from 'clsx';
3+
import { twMerge } from 'tailwind-merge';
44

55
export const cn = (...inputs: ReadonlyArray<ClassValue>) => twMerge(clsx(inputs));

0 commit comments

Comments
 (0)