Skip to content

Commit 3d36354

Browse files
CopilotHotell
andcommitted
Run nx format to fix formatting issues
Co-authored-by: Hotell <[email protected]>
1 parent 28d8de2 commit 3d36354

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

packages/react-docsite-components/src/components/CodeSnippet/CodeSnippet.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
import * as React from 'react';
2-
import {
3-
IStyleFunctionOrObject,
4-
ITheme,
5-
IStyle,
6-
styled,
7-
classNamesFunction,
8-
DefaultPalette,
9-
} from '@fluentui/react';
2+
import { IStyleFunctionOrObject, ITheme, IStyle, styled, classNamesFunction, DefaultPalette } from '@fluentui/react';
103
import { NeutralColors, SharedColors } from '@fluentui/theme';
114
import { baseCodeStyle, getStyles } from './CodeSnippet.styles';
125

@@ -22,7 +15,8 @@ const xml = require<any>('react-syntax-highlighter/dist/esm/languages/hljs/xml')
2215
/* eslint-enable @typescript-eslint/no-explicit-any */
2316

2417
// Import SyntaxHighlighter styles
25-
const style: { [key: string]: React.CSSProperties } = require('react-syntax-highlighter/dist/esm/styles/hljs/github').default;
18+
const style: { [key: string]: React.CSSProperties } =
19+
require('react-syntax-highlighter/dist/esm/styles/hljs/github').default;
2620

2721
// Register languages
2822
SyntaxHighlighter.registerLanguage('typescript', ts);

packages/react-docsite-components/src/components/CodeSnippet/PrismCodeSnippet.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const markup = require<any>('react-syntax-highlighter/dist/esm/languages/prism/m
1919
/* eslint-enable @typescript-eslint/no-explicit-any */
2020

2121
// Import SyntaxHighlighter styles
22-
const style: { [key: string]: React.CSSProperties } = require('react-syntax-highlighter/dist/esm/styles/prism/prism').default;
22+
const style: { [key: string]: React.CSSProperties } =
23+
require('react-syntax-highlighter/dist/esm/styles/prism/prism').default;
2324

2425
// Register languages
2526
SyntaxHighlighter.registerLanguage('tsx', ts);

packages/react-monaco-editor/src/components/TypeScriptSnippet.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const SyntaxHighlighter = require<{
1010
default: React.ComponentType<SyntaxHighlighterProps> & { registerLanguage: (lang: string, func: any) => void };
1111
}>('react-syntax-highlighter/dist/esm/prism-light').default;
1212
const ts = require<any>('react-syntax-highlighter/dist/esm/languages/prism/tsx').default;
13-
const style: { [key: string]: React.CSSProperties } = require('react-syntax-highlighter/dist/esm/styles/prism/vs').default;
13+
const style: { [key: string]: React.CSSProperties } =
14+
require('react-syntax-highlighter/dist/esm/styles/prism/vs').default;
1415
/* eslint-enable @typescript-eslint/no-explicit-any */
1516

1617
// Register languages

0 commit comments

Comments
 (0)