Explorar o código

fix lint errors

Yuki Takei hai 5 meses
pai
achega
510909386e

+ 1 - 1
packages/presentation/src/client/components/GrowiSlides.tsx

@@ -1,5 +1,5 @@
-import Head from 'next/head';
 import type { JSX } from 'react';
+import Head from 'next/head';
 import ReactMarkdown from 'react-markdown';
 
 import type { PresentationOptions } from '../consts';

+ 1 - 1
packages/presentation/src/client/components/MarpSlides.tsx

@@ -1,5 +1,5 @@
-import Head from 'next/head';
 import type { JSX } from 'react';
+import Head from 'next/head';
 
 import { presentationMarpit, slideMarpit } from '../services/growi-marpit';
 

+ 6 - 2
packages/presentation/src/client/components/Presentation.tsx

@@ -2,9 +2,10 @@ import { type JSX, useEffect, useRef } from 'react';
 import Reveal from 'reveal.js';
 
 import type { PresentationOptions } from '../consts';
-import styles from './Presentation.module.scss';
 import { Slides } from './Slides';
 
+import styles from './Presentation.module.scss';
+
 const moduleClass = styles['grw-presentation'] ?? '';
 
 const baseRevealOptions: Reveal.Options = {
@@ -43,7 +44,10 @@ export const Presentation = (props: PresentationProps): JSX.Element => {
     if (children == null || deckRef.current == null) {
       return;
     }
-    const deck = new Reveal(deckRef.current, { ...baseRevealOptions, ...revealOptions });
+    const deck = new Reveal(deckRef.current, {
+      ...baseRevealOptions,
+      ...revealOptions,
+    });
     deck.initialize().then(() => deck.slide(0)); // navigate to the first slide
 
     deck.on('ready', removeAllHiddenElements);

+ 1 - 1
packages/presentation/src/services/use-slides-by-frontmatter.ts

@@ -1,5 +1,5 @@
-import type { Parent, Root } from 'mdast';
 import { useEffect, useState } from 'react';
+import type { Parent, Root } from 'mdast';
 import type { Processor } from 'unified';
 
 type ParseResult = {