diff --git a/packages/website/src/components/ErrorsViewer.tsx b/packages/website/src/components/ErrorsViewer.tsx index 0789b84d78c0..178d3fd6573a 100644 --- a/packages/website/src/components/ErrorsViewer.tsx +++ b/packages/website/src/components/ErrorsViewer.tsx @@ -1,3 +1,4 @@ +import Link from '@docusaurus/Link'; import IconExternalLink from '@theme/Icon/ExternalLink'; import clsx from 'clsx'; import type Monaco from 'monaco-editor'; @@ -134,9 +135,9 @@ export default function ErrorsViewer({ {uri && ( <> {' - '} - + docs - + )} diff --git a/packages/website/src/components/FinancialContributors/Sponsor.tsx b/packages/website/src/components/FinancialContributors/Sponsor.tsx index c50ab89b609c..5a9bf43e0410 100644 --- a/packages/website/src/components/FinancialContributors/Sponsor.tsx +++ b/packages/website/src/components/FinancialContributors/Sponsor.tsx @@ -1,3 +1,4 @@ +import Link from '@docusaurus/Link'; import React from 'react'; import styles from './styles.module.css'; @@ -21,14 +22,13 @@ export function Sponsor({ includeName, sponsor }: SponsorProps): JSX.Element { } return ( - {children} - + ); } diff --git a/packages/website/src/components/ast/PropertyName.tsx b/packages/website/src/components/ast/PropertyName.tsx index 41d0f93ca602..5b8afce5d303 100644 --- a/packages/website/src/components/ast/PropertyName.tsx +++ b/packages/website/src/components/ast/PropertyName.tsx @@ -1,3 +1,4 @@ +import Link from '@docusaurus/Link'; import type { MouseEvent } from 'react'; import React, { useCallback } from 'react'; @@ -32,27 +33,27 @@ export default function PropertyName(props: PropertyNameProps): JSX.Element { return props.onClick || props.onHover ? ( <> {props.propName && ( - {props.propName} - + )} {props.propName && : } {props.typeName && ( - {props.typeName} - + )} {props.typeName && } diff --git a/packages/website/src/theme/MDXComponents/RuleAttributes.tsx b/packages/website/src/theme/MDXComponents/RuleAttributes.tsx index 075d0a6af8e1..572ab28dad8a 100644 --- a/packages/website/src/theme/MDXComponents/RuleAttributes.tsx +++ b/packages/website/src/theme/MDXComponents/RuleAttributes.tsx @@ -1,3 +1,4 @@ +import Link from '@docusaurus/Link'; import type { RuleMetaDataDocs } from '@site/../utils/dist/ts-eslint/Rule'; import { useRulesMeta } from '@site/src/hooks/useRulesMeta'; import React from 'react'; @@ -29,18 +30,15 @@ export function RuleAttributes({ name }: { name: string }): React.ReactNode { children: ( <> Extending{' '} - + "plugin:@typescript-eslint/{recommendation}" - {' '} + {' '} in an{' '} - + ESLint configuration - {' '} + {' '} enables this rule. ), @@ -53,12 +51,9 @@ export function RuleAttributes({ name }: { name: string }): React.ReactNode { children: ( <> Some problems reported by this rule are automatically fixable by the{' '} - + --fix ESLint command line option - + . ), @@ -71,12 +66,9 @@ export function RuleAttributes({ name }: { name: string }): React.ReactNode { children: ( <> Some problems reported by this rule are manually fixable by editor{' '} - + suggestions - + . ), @@ -89,9 +81,9 @@ export function RuleAttributes({ name }: { name: string }): React.ReactNode { children: ( <> This rule requires{' '} - + type information - {' '} + {' '} to run. ), diff --git a/packages/website/src/theme/MDXComponents/TryInPlayground.tsx b/packages/website/src/theme/MDXComponents/TryInPlayground.tsx index d9b096f1d909..cc062f6242db 100644 --- a/packages/website/src/theme/MDXComponents/TryInPlayground.tsx +++ b/packages/website/src/theme/MDXComponents/TryInPlayground.tsx @@ -1,3 +1,4 @@ +import Link from '@docusaurus/Link'; import React from 'react'; import styles from './TryInPlayground.module.css'; @@ -8,12 +9,12 @@ export function TryInPlayground({ eslintrcHash: string; }): React.ReactNode { return ( - Try this rule in the playground ↗ - + ); }