diff --git a/website/astro.config.ts b/website/astro.config.ts index 6ed105a96a6..fc05d19693b 100644 --- a/website/astro.config.ts +++ b/website/astro.config.ts @@ -142,6 +142,13 @@ function inlineIntegration(): AstroIntegration { }; } +function remarkDefaultLayoutPlugin() { + return function (tree, file) { + const {frontmatter} = file.data.astro; + frontmatter.layout = frontmatter.layout ?? "/Layout.astro"; + }; +} + // https://astro.build/config export default defineConfig({ site: "https://rome.tools", @@ -163,7 +170,7 @@ export default defineConfig({ markdown: { syntaxHighlight: "prism", - remarkPlugins: [remarkToc], + remarkPlugins: [remarkToc, remarkDefaultLayoutPlugin], rehypePlugins: [ rehypeSlug, [ diff --git a/website/src/pages/cli.mdx b/website/src/pages/cli.mdx index a9c3adca487..464d5b128cc 100644 --- a/website/src/pages/cli.mdx +++ b/website/src/pages/cli.mdx @@ -1,5 +1,4 @@ --- -layout: /Layout.astro title: CLI emoji: ⌨️ category: reference diff --git a/website/src/pages/configuration.mdx b/website/src/pages/configuration.mdx index de23e63c73a..c788f0adfee 100644 --- a/website/src/pages/configuration.mdx +++ b/website/src/pages/configuration.mdx @@ -3,7 +3,6 @@ title: Configuration emoji: ⚙️ category: reference description: How to customize and configure Rome with rome.json. -layout: /Layout.astro --- import LintGroups from "/components/reference/Groups.astro"; diff --git a/website/src/pages/credits.mdx b/website/src/pages/credits.mdx index c4e2e4f06e5..dc7dab6ec87 100644 --- a/website/src/pages/credits.mdx +++ b/website/src/pages/credits.mdx @@ -3,7 +3,6 @@ title: Credits emoji: 📝 description: Previous contributors and acknowledgments for projects that inspire us. category: internals -layout: /Layout.astro --- import Contributors from "/components/Contributors.astro"; diff --git a/website/src/pages/formatter/index.mdx b/website/src/pages/formatter/index.mdx index 4d8767c8a5c..46d0462c850 100644 --- a/website/src/pages/formatter/index.mdx +++ b/website/src/pages/formatter/index.mdx @@ -3,7 +3,6 @@ title: Formatter emoji: 🖌️ category: tools description: How to use the Rome formatter. -layout: /Layout.astro --- import PackageManagerRomeCommand from "/components/PackageManagerRomeCommand.astro"; diff --git a/website/src/pages/guides/getting-started.mdx b/website/src/pages/guides/getting-started.mdx index 56c346da6f9..3c0ff0939ff 100644 --- a/website/src/pages/guides/getting-started.mdx +++ b/website/src/pages/guides/getting-started.mdx @@ -1,5 +1,4 @@ --- -layout: /Layout.astro title: Getting Started category: guides emoji: 🎉 diff --git a/website/src/pages/internals/architecture.mdx b/website/src/pages/internals/architecture.mdx index 5d52d98b4bb..ddc25e148e0 100644 --- a/website/src/pages/internals/architecture.mdx +++ b/website/src/pages/internals/architecture.mdx @@ -3,7 +3,6 @@ title: Architecture emoji: 🏛️ category: internals description: How Rome works. -layout: /Layout.astro --- # Architecture (in progress) diff --git a/website/src/pages/internals/index.mdx b/website/src/pages/internals/index.mdx index 08620f7b2d4..88ecab0fd7d 100644 --- a/website/src/pages/internals/index.mdx +++ b/website/src/pages/internals/index.mdx @@ -1,4 +1,3 @@ --- title: Internals -layout: /Layout.astro --- diff --git a/website/src/pages/internals/philosophy.mdx b/website/src/pages/internals/philosophy.mdx index 2ef80c47df1..1b15bbf6463 100644 --- a/website/src/pages/internals/philosophy.mdx +++ b/website/src/pages/internals/philosophy.mdx @@ -3,7 +3,6 @@ title: Philosophy emoji: 🧐 category: internals description: How we think about building Rome. -layout: /Layout.astro --- # Philosophy diff --git a/website/src/pages/lint/rules/index.mdx b/website/src/pages/lint/rules/index.mdx index 09f64fa1d59..39d872a0621 100644 --- a/website/src/pages/lint/rules/index.mdx +++ b/website/src/pages/lint/rules/index.mdx @@ -1,6 +1,5 @@ --- title: Lint Rules -layout: /Layout.astro emoji: 📏 description: List of available lint rules. category: reference diff --git a/website/src/pages/lint/rules/noArguments.md b/website/src/pages/lint/rules/noArguments.md index 89086ac80cf..454fcdd83a7 100644 --- a/website/src/pages/lint/rules/noArguments.md +++ b/website/src/pages/lint/rules/noArguments.md @@ -1,6 +1,5 @@ --- title: Lint Rule noArguments -layout: /Layout.astro --- # noArguments (since v0.7.0) diff --git a/website/src/pages/lint/rules/noArrayIndexKey.md b/website/src/pages/lint/rules/noArrayIndexKey.md index 98908ca33f8..0c793034b42 100644 --- a/website/src/pages/lint/rules/noArrayIndexKey.md +++ b/website/src/pages/lint/rules/noArrayIndexKey.md @@ -1,6 +1,5 @@ --- title: Lint Rule noArrayIndexKey -layout: /Layout.astro --- # noArrayIndexKey (since v0.10.0) diff --git a/website/src/pages/lint/rules/noAsyncPromiseExecutor.md b/website/src/pages/lint/rules/noAsyncPromiseExecutor.md index c8507422972..7b44482e334 100644 --- a/website/src/pages/lint/rules/noAsyncPromiseExecutor.md +++ b/website/src/pages/lint/rules/noAsyncPromiseExecutor.md @@ -1,6 +1,5 @@ --- title: Lint Rule noAsyncPromiseExecutor -layout: /Layout.astro --- # noAsyncPromiseExecutor (since v0.7.0) diff --git a/website/src/pages/lint/rules/noAutofocus.md b/website/src/pages/lint/rules/noAutofocus.md index 0e4005fc8f5..99fed62a96d 100644 --- a/website/src/pages/lint/rules/noAutofocus.md +++ b/website/src/pages/lint/rules/noAutofocus.md @@ -1,6 +1,5 @@ --- title: Lint Rule noAutofocus -layout: /Layout.astro --- # noAutofocus (since v10.0.0) diff --git a/website/src/pages/lint/rules/noBannedTypes.md b/website/src/pages/lint/rules/noBannedTypes.md index a594dfc219b..3d61b20c493 100644 --- a/website/src/pages/lint/rules/noBannedTypes.md +++ b/website/src/pages/lint/rules/noBannedTypes.md @@ -1,6 +1,5 @@ --- title: Lint Rule noBannedTypes -layout: /Layout.astro --- # noBannedTypes (since v10.0.0) diff --git a/website/src/pages/lint/rules/noCatchAssign.md b/website/src/pages/lint/rules/noCatchAssign.md index 8aed5b37d7a..50144a2d4a2 100644 --- a/website/src/pages/lint/rules/noCatchAssign.md +++ b/website/src/pages/lint/rules/noCatchAssign.md @@ -1,6 +1,5 @@ --- title: Lint Rule noCatchAssign -layout: /Layout.astro --- # noCatchAssign (since v0.7.0) diff --git a/website/src/pages/lint/rules/noChildrenProp.md b/website/src/pages/lint/rules/noChildrenProp.md index eda92377923..d37b7cbf84f 100644 --- a/website/src/pages/lint/rules/noChildrenProp.md +++ b/website/src/pages/lint/rules/noChildrenProp.md @@ -1,6 +1,5 @@ --- title: Lint Rule noChildrenProp -layout: /Layout.astro --- # noChildrenProp (since v0.10.0) diff --git a/website/src/pages/lint/rules/noCommentText.md b/website/src/pages/lint/rules/noCommentText.md index 6d98a78799c..33d01a707eb 100644 --- a/website/src/pages/lint/rules/noCommentText.md +++ b/website/src/pages/lint/rules/noCommentText.md @@ -1,6 +1,5 @@ --- title: Lint Rule noCommentText -layout: /Layout.astro --- # noCommentText (since v0.7.0) diff --git a/website/src/pages/lint/rules/noCompareNegZero.md b/website/src/pages/lint/rules/noCompareNegZero.md index 78bc60f49ef..5e81444f2d2 100644 --- a/website/src/pages/lint/rules/noCompareNegZero.md +++ b/website/src/pages/lint/rules/noCompareNegZero.md @@ -1,6 +1,5 @@ --- title: Lint Rule noCompareNegZero -layout: /Layout.astro --- # noCompareNegZero (since v0.7.0) diff --git a/website/src/pages/lint/rules/noConstAssign.md b/website/src/pages/lint/rules/noConstAssign.md index e3084611aff..9ae920cd5cf 100644 --- a/website/src/pages/lint/rules/noConstAssign.md +++ b/website/src/pages/lint/rules/noConstAssign.md @@ -1,6 +1,5 @@ --- title: Lint Rule noConstAssign -layout: /Layout.astro --- # noConstAssign (since v10.0.0) diff --git a/website/src/pages/lint/rules/noDangerouslySetInnerHtml.md b/website/src/pages/lint/rules/noDangerouslySetInnerHtml.md index 6f70040e3f8..5cbb4e761c5 100644 --- a/website/src/pages/lint/rules/noDangerouslySetInnerHtml.md +++ b/website/src/pages/lint/rules/noDangerouslySetInnerHtml.md @@ -1,6 +1,5 @@ --- title: Lint Rule noDangerouslySetInnerHtml -layout: /Layout.astro --- # noDangerouslySetInnerHtml (since v0.10.0) diff --git a/website/src/pages/lint/rules/noDangerouslySetInnerHtmlWithChildren.md b/website/src/pages/lint/rules/noDangerouslySetInnerHtmlWithChildren.md index d1a66a8ca79..d26b5c50120 100644 --- a/website/src/pages/lint/rules/noDangerouslySetInnerHtmlWithChildren.md +++ b/website/src/pages/lint/rules/noDangerouslySetInnerHtmlWithChildren.md @@ -1,6 +1,5 @@ --- title: Lint Rule noDangerouslySetInnerHtmlWithChildren -layout: /Layout.astro --- # noDangerouslySetInnerHtmlWithChildren (since v0.10.0) diff --git a/website/src/pages/lint/rules/noDebugger.md b/website/src/pages/lint/rules/noDebugger.md index 42cff20d37c..e5855aaa771 100644 --- a/website/src/pages/lint/rules/noDebugger.md +++ b/website/src/pages/lint/rules/noDebugger.md @@ -1,6 +1,5 @@ --- title: Lint Rule noDebugger -layout: /Layout.astro --- # noDebugger (since v0.7.0) diff --git a/website/src/pages/lint/rules/noDelete.md b/website/src/pages/lint/rules/noDelete.md index 28d5e9d4877..ec9fd9c4fb4 100644 --- a/website/src/pages/lint/rules/noDelete.md +++ b/website/src/pages/lint/rules/noDelete.md @@ -1,6 +1,5 @@ --- title: Lint Rule noDelete -layout: /Layout.astro --- # noDelete (since v0.7.0) diff --git a/website/src/pages/lint/rules/noDoubleEquals.md b/website/src/pages/lint/rules/noDoubleEquals.md index 036795f3f68..c2237e0d96f 100644 --- a/website/src/pages/lint/rules/noDoubleEquals.md +++ b/website/src/pages/lint/rules/noDoubleEquals.md @@ -1,6 +1,5 @@ --- title: Lint Rule noDoubleEquals -layout: /Layout.astro --- # noDoubleEquals (since v0.7.0) diff --git a/website/src/pages/lint/rules/noDupeArgs.md b/website/src/pages/lint/rules/noDupeArgs.md index 351018d65bf..0acf547ba6a 100644 --- a/website/src/pages/lint/rules/noDupeArgs.md +++ b/website/src/pages/lint/rules/noDupeArgs.md @@ -1,6 +1,5 @@ --- title: Lint Rule noDupeArgs -layout: /Layout.astro --- # noDupeArgs (since v0.9.0) diff --git a/website/src/pages/lint/rules/noEmptyPattern.md b/website/src/pages/lint/rules/noEmptyPattern.md index 0865d3c2375..31b1bcb39c7 100644 --- a/website/src/pages/lint/rules/noEmptyPattern.md +++ b/website/src/pages/lint/rules/noEmptyPattern.md @@ -1,6 +1,5 @@ --- title: Lint Rule noEmptyPattern -layout: /Layout.astro --- # noEmptyPattern (since v0.7.0) diff --git a/website/src/pages/lint/rules/noExplicitAny.md b/website/src/pages/lint/rules/noExplicitAny.md index 0d529554f4d..f0e4e9aa502 100644 --- a/website/src/pages/lint/rules/noExplicitAny.md +++ b/website/src/pages/lint/rules/noExplicitAny.md @@ -1,6 +1,5 @@ --- title: Lint Rule noExplicitAny -layout: /Layout.astro --- # noExplicitAny (since v10.0.0) diff --git a/website/src/pages/lint/rules/noExtraBooleanCast.md b/website/src/pages/lint/rules/noExtraBooleanCast.md index 62ddacdfc56..44c99375ab0 100644 --- a/website/src/pages/lint/rules/noExtraBooleanCast.md +++ b/website/src/pages/lint/rules/noExtraBooleanCast.md @@ -1,6 +1,5 @@ --- title: Lint Rule noExtraBooleanCast -layout: /Layout.astro --- # noExtraBooleanCast (since v0.9.0) diff --git a/website/src/pages/lint/rules/noFunctionAssign.md b/website/src/pages/lint/rules/noFunctionAssign.md index c6ac374a76c..ef6f9ae9564 100644 --- a/website/src/pages/lint/rules/noFunctionAssign.md +++ b/website/src/pages/lint/rules/noFunctionAssign.md @@ -1,6 +1,5 @@ --- title: Lint Rule noFunctionAssign -layout: /Layout.astro --- # noFunctionAssign (since v0.7.0) diff --git a/website/src/pages/lint/rules/noImplicitBoolean.md b/website/src/pages/lint/rules/noImplicitBoolean.md index e5a7a4eedba..e3ade10f7c2 100644 --- a/website/src/pages/lint/rules/noImplicitBoolean.md +++ b/website/src/pages/lint/rules/noImplicitBoolean.md @@ -1,6 +1,5 @@ --- title: Lint Rule noImplicitBoolean -layout: /Layout.astro --- # noImplicitBoolean (since v0.7.0) diff --git a/website/src/pages/lint/rules/noImportAssign.md b/website/src/pages/lint/rules/noImportAssign.md index c754266bdaf..27686c77000 100644 --- a/website/src/pages/lint/rules/noImportAssign.md +++ b/website/src/pages/lint/rules/noImportAssign.md @@ -1,6 +1,5 @@ --- title: Lint Rule noImportAssign -layout: /Layout.astro --- # noImportAssign (since v0.9.0) diff --git a/website/src/pages/lint/rules/noInvalidConstructorSuper.md b/website/src/pages/lint/rules/noInvalidConstructorSuper.md index 47b37c6e131..c746b01dee7 100644 --- a/website/src/pages/lint/rules/noInvalidConstructorSuper.md +++ b/website/src/pages/lint/rules/noInvalidConstructorSuper.md @@ -1,6 +1,5 @@ --- title: Lint Rule noInvalidConstructorSuper -layout: /Layout.astro --- # noInvalidConstructorSuper (since v10.0.0) diff --git a/website/src/pages/lint/rules/noLabelVar.md b/website/src/pages/lint/rules/noLabelVar.md index dc860f5cbcc..04c507066cd 100644 --- a/website/src/pages/lint/rules/noLabelVar.md +++ b/website/src/pages/lint/rules/noLabelVar.md @@ -1,6 +1,5 @@ --- title: Lint Rule noLabelVar -layout: /Layout.astro --- # noLabelVar (since v0.7.0) diff --git a/website/src/pages/lint/rules/noMultipleSpacesInRegularExpressionLiterals.md b/website/src/pages/lint/rules/noMultipleSpacesInRegularExpressionLiterals.md index 065314dc4ff..1d2d06aadeb 100644 --- a/website/src/pages/lint/rules/noMultipleSpacesInRegularExpressionLiterals.md +++ b/website/src/pages/lint/rules/noMultipleSpacesInRegularExpressionLiterals.md @@ -1,6 +1,5 @@ --- title: Lint Rule noMultipleSpacesInRegularExpressionLiterals -layout: /Layout.astro --- # noMultipleSpacesInRegularExpressionLiterals (since v0.7.0) diff --git a/website/src/pages/lint/rules/noNegationElse.md b/website/src/pages/lint/rules/noNegationElse.md index b6c43afc923..6a1b47cb354 100644 --- a/website/src/pages/lint/rules/noNegationElse.md +++ b/website/src/pages/lint/rules/noNegationElse.md @@ -1,6 +1,5 @@ --- title: Lint Rule noNegationElse -layout: /Layout.astro --- # noNegationElse (since v0.7.0) diff --git a/website/src/pages/lint/rules/noNewSymbol.md b/website/src/pages/lint/rules/noNewSymbol.md index e7e9cebfbba..e9545e87e7c 100644 --- a/website/src/pages/lint/rules/noNewSymbol.md +++ b/website/src/pages/lint/rules/noNewSymbol.md @@ -1,6 +1,5 @@ --- title: Lint Rule noNewSymbol -layout: /Layout.astro --- # noNewSymbol (since v0.10.0) diff --git a/website/src/pages/lint/rules/noPositiveTabindex.md b/website/src/pages/lint/rules/noPositiveTabindex.md index 4ce6b244952..dfb2801f6c8 100644 --- a/website/src/pages/lint/rules/noPositiveTabindex.md +++ b/website/src/pages/lint/rules/noPositiveTabindex.md @@ -1,6 +1,5 @@ --- title: Lint Rule noPositiveTabindex -layout: /Layout.astro --- # noPositiveTabindex (since v10.0.0) diff --git a/website/src/pages/lint/rules/noRenderReturnValue.md b/website/src/pages/lint/rules/noRenderReturnValue.md index 58c907b7ad8..9fc9d3f4041 100644 --- a/website/src/pages/lint/rules/noRenderReturnValue.md +++ b/website/src/pages/lint/rules/noRenderReturnValue.md @@ -1,6 +1,5 @@ --- title: Lint Rule noRenderReturnValue -layout: /Layout.astro --- # noRenderReturnValue (since v0.10.0) diff --git a/website/src/pages/lint/rules/noRestrictedGlobals.md b/website/src/pages/lint/rules/noRestrictedGlobals.md index c91d7fded2e..e8233788604 100644 --- a/website/src/pages/lint/rules/noRestrictedGlobals.md +++ b/website/src/pages/lint/rules/noRestrictedGlobals.md @@ -1,6 +1,5 @@ --- title: Lint Rule noRestrictedGlobals -layout: /Layout.astro --- # noRestrictedGlobals (since v0.10.0) diff --git a/website/src/pages/lint/rules/noShadowRestrictedNames.md b/website/src/pages/lint/rules/noShadowRestrictedNames.md index bdf208029e6..ea37a7de925 100644 --- a/website/src/pages/lint/rules/noShadowRestrictedNames.md +++ b/website/src/pages/lint/rules/noShadowRestrictedNames.md @@ -1,6 +1,5 @@ --- title: Lint Rule noShadowRestrictedNames -layout: /Layout.astro --- # noShadowRestrictedNames (since v0.9.0) diff --git a/website/src/pages/lint/rules/noShoutyConstants.md b/website/src/pages/lint/rules/noShoutyConstants.md index ed0f2798a4f..9c7fbf270b6 100644 --- a/website/src/pages/lint/rules/noShoutyConstants.md +++ b/website/src/pages/lint/rules/noShoutyConstants.md @@ -1,6 +1,5 @@ --- title: Lint Rule noShoutyConstants -layout: /Layout.astro --- # noShoutyConstants (since v0.7.0) diff --git a/website/src/pages/lint/rules/noSparseArray.md b/website/src/pages/lint/rules/noSparseArray.md index 29a7061ab37..0a18fef09b4 100644 --- a/website/src/pages/lint/rules/noSparseArray.md +++ b/website/src/pages/lint/rules/noSparseArray.md @@ -1,6 +1,5 @@ --- title: Lint Rule noSparseArray -layout: /Layout.astro --- # noSparseArray (since v0.7.0) diff --git a/website/src/pages/lint/rules/noUndeclaredVariables.md b/website/src/pages/lint/rules/noUndeclaredVariables.md index 00d32b05c19..8936d8bfe45 100644 --- a/website/src/pages/lint/rules/noUndeclaredVariables.md +++ b/website/src/pages/lint/rules/noUndeclaredVariables.md @@ -1,6 +1,5 @@ --- title: Lint Rule noUndeclaredVariables -layout: /Layout.astro --- # noUndeclaredVariables (since v0.10.0) diff --git a/website/src/pages/lint/rules/noUnnecessaryContinue.md b/website/src/pages/lint/rules/noUnnecessaryContinue.md index b9a649c8b20..4224d7d2bc8 100644 --- a/website/src/pages/lint/rules/noUnnecessaryContinue.md +++ b/website/src/pages/lint/rules/noUnnecessaryContinue.md @@ -1,6 +1,5 @@ --- title: Lint Rule noUnnecessaryContinue -layout: /Layout.astro --- # noUnnecessaryContinue (since v0.7.0) diff --git a/website/src/pages/lint/rules/noUnreachable.md b/website/src/pages/lint/rules/noUnreachable.md index 91324757dc9..142a039a76f 100644 --- a/website/src/pages/lint/rules/noUnreachable.md +++ b/website/src/pages/lint/rules/noUnreachable.md @@ -1,6 +1,5 @@ --- title: Lint Rule noUnreachable -layout: /Layout.astro --- # noUnreachable (since v0.7.0) diff --git a/website/src/pages/lint/rules/noUnsafeNegation.md b/website/src/pages/lint/rules/noUnsafeNegation.md index 6fb53bc1090..673ca9995ea 100644 --- a/website/src/pages/lint/rules/noUnsafeNegation.md +++ b/website/src/pages/lint/rules/noUnsafeNegation.md @@ -1,6 +1,5 @@ --- title: Lint Rule noUnsafeNegation -layout: /Layout.astro --- # noUnsafeNegation (since v0.7.0) diff --git a/website/src/pages/lint/rules/noUnusedTemplateLiteral.md b/website/src/pages/lint/rules/noUnusedTemplateLiteral.md index a5fd76c4fdd..18aad8dca0a 100644 --- a/website/src/pages/lint/rules/noUnusedTemplateLiteral.md +++ b/website/src/pages/lint/rules/noUnusedTemplateLiteral.md @@ -1,6 +1,5 @@ --- title: Lint Rule noUnusedTemplateLiteral -layout: /Layout.astro --- # noUnusedTemplateLiteral (since v0.7.0) diff --git a/website/src/pages/lint/rules/noUnusedVariables.md b/website/src/pages/lint/rules/noUnusedVariables.md index f21299339cc..ee966785739 100644 --- a/website/src/pages/lint/rules/noUnusedVariables.md +++ b/website/src/pages/lint/rules/noUnusedVariables.md @@ -1,6 +1,5 @@ --- title: Lint Rule noUnusedVariables -layout: /Layout.astro --- # noUnusedVariables (since v0.9.0) diff --git a/website/src/pages/lint/rules/noUselessFragments.md b/website/src/pages/lint/rules/noUselessFragments.md index 050a766b615..2c277885625 100644 --- a/website/src/pages/lint/rules/noUselessFragments.md +++ b/website/src/pages/lint/rules/noUselessFragments.md @@ -1,6 +1,5 @@ --- title: Lint Rule noUselessFragments -layout: /Layout.astro --- # noUselessFragments (since v0.10.0) diff --git a/website/src/pages/lint/rules/noVoidElementsWithChildren.md b/website/src/pages/lint/rules/noVoidElementsWithChildren.md index b3fb10ff359..01182e1298b 100644 --- a/website/src/pages/lint/rules/noVoidElementsWithChildren.md +++ b/website/src/pages/lint/rules/noVoidElementsWithChildren.md @@ -1,6 +1,5 @@ --- title: Lint Rule noVoidElementsWithChildren -layout: /Layout.astro --- # noVoidElementsWithChildren (since v0.10.0) diff --git a/website/src/pages/lint/rules/useAltText.md b/website/src/pages/lint/rules/useAltText.md index 0364893aba1..8dba86b8345 100644 --- a/website/src/pages/lint/rules/useAltText.md +++ b/website/src/pages/lint/rules/useAltText.md @@ -1,6 +1,5 @@ --- title: Lint Rule useAltText -layout: /Layout.astro --- # useAltText (since v10.0.0) diff --git a/website/src/pages/lint/rules/useAnchorContent.md b/website/src/pages/lint/rules/useAnchorContent.md index dd3a6ed5a8d..96364113d9c 100644 --- a/website/src/pages/lint/rules/useAnchorContent.md +++ b/website/src/pages/lint/rules/useAnchorContent.md @@ -1,6 +1,5 @@ --- title: Lint Rule useAnchorContent -layout: /Layout.astro --- # useAnchorContent (since v10.0.0) diff --git a/website/src/pages/lint/rules/useBlankTarget.md b/website/src/pages/lint/rules/useBlankTarget.md index 778f5d1bd3d..58ecfe663ff 100644 --- a/website/src/pages/lint/rules/useBlankTarget.md +++ b/website/src/pages/lint/rules/useBlankTarget.md @@ -1,6 +1,5 @@ --- title: Lint Rule useBlankTarget -layout: /Layout.astro --- # useBlankTarget (since v10.0.0) diff --git a/website/src/pages/lint/rules/useBlockStatements.md b/website/src/pages/lint/rules/useBlockStatements.md index 44d5424e3ca..41b37c9cb6a 100644 --- a/website/src/pages/lint/rules/useBlockStatements.md +++ b/website/src/pages/lint/rules/useBlockStatements.md @@ -1,6 +1,5 @@ --- title: Lint Rule useBlockStatements -layout: /Layout.astro --- # useBlockStatements (since v0.7.0) diff --git a/website/src/pages/lint/rules/useButtonType.md b/website/src/pages/lint/rules/useButtonType.md index 16da6e17873..c87710c973d 100644 --- a/website/src/pages/lint/rules/useButtonType.md +++ b/website/src/pages/lint/rules/useButtonType.md @@ -1,6 +1,5 @@ --- title: Lint Rule useButtonType -layout: /Layout.astro --- # useButtonType (since v0.10.0) diff --git a/website/src/pages/lint/rules/useCamelCase.md b/website/src/pages/lint/rules/useCamelCase.md index de4f6e9f4fa..8caab3523f7 100644 --- a/website/src/pages/lint/rules/useCamelCase.md +++ b/website/src/pages/lint/rules/useCamelCase.md @@ -1,6 +1,5 @@ --- title: Lint Rule useCamelCase -layout: /Layout.astro --- # useCamelCase (since v0.8.0) diff --git a/website/src/pages/lint/rules/useExhaustiveDependencies.md b/website/src/pages/lint/rules/useExhaustiveDependencies.md index 25116363ee8..7a82f2eff40 100644 --- a/website/src/pages/lint/rules/useExhaustiveDependencies.md +++ b/website/src/pages/lint/rules/useExhaustiveDependencies.md @@ -1,6 +1,5 @@ --- title: Lint Rule useExhaustiveDependencies -layout: /Layout.astro --- # useExhaustiveDependencies (since v10.0.0) diff --git a/website/src/pages/lint/rules/useFlatMap.md b/website/src/pages/lint/rules/useFlatMap.md index 7a8252ed4dd..f16038c0255 100644 --- a/website/src/pages/lint/rules/useFlatMap.md +++ b/website/src/pages/lint/rules/useFlatMap.md @@ -1,6 +1,5 @@ --- title: Lint Rule useFlatMap -layout: /Layout.astro --- # useFlatMap (since v10.0.0) diff --git a/website/src/pages/lint/rules/useFragmentSyntax.md b/website/src/pages/lint/rules/useFragmentSyntax.md index 0e3a7c31a7e..7c167b77aa9 100644 --- a/website/src/pages/lint/rules/useFragmentSyntax.md +++ b/website/src/pages/lint/rules/useFragmentSyntax.md @@ -1,6 +1,5 @@ --- title: Lint Rule useFragmentSyntax -layout: /Layout.astro --- # useFragmentSyntax (since v0.10.0) diff --git a/website/src/pages/lint/rules/useKeyWithClickEvents.md b/website/src/pages/lint/rules/useKeyWithClickEvents.md index 522ffc2d876..30dabfcae2b 100644 --- a/website/src/pages/lint/rules/useKeyWithClickEvents.md +++ b/website/src/pages/lint/rules/useKeyWithClickEvents.md @@ -1,6 +1,5 @@ --- title: Lint Rule useKeyWithClickEvents -layout: /Layout.astro --- # useKeyWithClickEvents (since v10.0.0) diff --git a/website/src/pages/lint/rules/useKeyWithMouseEvents.md b/website/src/pages/lint/rules/useKeyWithMouseEvents.md index 447ae22e26e..a9eca74335b 100644 --- a/website/src/pages/lint/rules/useKeyWithMouseEvents.md +++ b/website/src/pages/lint/rules/useKeyWithMouseEvents.md @@ -1,6 +1,5 @@ --- title: Lint Rule useKeyWithMouseEvents -layout: /Layout.astro --- # useKeyWithMouseEvents (since v10.0.0) diff --git a/website/src/pages/lint/rules/useOptionalChain.md b/website/src/pages/lint/rules/useOptionalChain.md index d7be1395984..eced2357df0 100644 --- a/website/src/pages/lint/rules/useOptionalChain.md +++ b/website/src/pages/lint/rules/useOptionalChain.md @@ -1,6 +1,5 @@ --- title: Lint Rule useOptionalChain -layout: /Layout.astro --- # useOptionalChain (since v0.10.0) diff --git a/website/src/pages/lint/rules/useSelfClosingElements.md b/website/src/pages/lint/rules/useSelfClosingElements.md index 3b8d10cbdcb..3e491afafd6 100644 --- a/website/src/pages/lint/rules/useSelfClosingElements.md +++ b/website/src/pages/lint/rules/useSelfClosingElements.md @@ -1,6 +1,5 @@ --- title: Lint Rule useSelfClosingElements -layout: /Layout.astro --- # useSelfClosingElements (since v0.7.0) diff --git a/website/src/pages/lint/rules/useShorthandArrayType.md b/website/src/pages/lint/rules/useShorthandArrayType.md index c63168d6990..5a553172294 100644 --- a/website/src/pages/lint/rules/useShorthandArrayType.md +++ b/website/src/pages/lint/rules/useShorthandArrayType.md @@ -1,6 +1,5 @@ --- title: Lint Rule useShorthandArrayType -layout: /Layout.astro --- # useShorthandArrayType (since v0.7.0) diff --git a/website/src/pages/lint/rules/useSimplifiedLogicExpression.md b/website/src/pages/lint/rules/useSimplifiedLogicExpression.md index b6727ad3fee..493fd1ca0c8 100644 --- a/website/src/pages/lint/rules/useSimplifiedLogicExpression.md +++ b/website/src/pages/lint/rules/useSimplifiedLogicExpression.md @@ -1,6 +1,5 @@ --- title: Lint Rule useSimplifiedLogicExpression -layout: /Layout.astro --- # useSimplifiedLogicExpression (since v0.7.0) diff --git a/website/src/pages/lint/rules/useSingleCaseStatement.md b/website/src/pages/lint/rules/useSingleCaseStatement.md index 110a890f75c..b7ef25b244d 100644 --- a/website/src/pages/lint/rules/useSingleCaseStatement.md +++ b/website/src/pages/lint/rules/useSingleCaseStatement.md @@ -1,6 +1,5 @@ --- title: Lint Rule useSingleCaseStatement -layout: /Layout.astro --- # useSingleCaseStatement (since v0.7.0) diff --git a/website/src/pages/lint/rules/useSingleVarDeclarator.md b/website/src/pages/lint/rules/useSingleVarDeclarator.md index 9af47f99976..7112da82376 100644 --- a/website/src/pages/lint/rules/useSingleVarDeclarator.md +++ b/website/src/pages/lint/rules/useSingleVarDeclarator.md @@ -1,6 +1,5 @@ --- title: Lint Rule useSingleVarDeclarator -layout: /Layout.astro --- # useSingleVarDeclarator (since v0.7.0) diff --git a/website/src/pages/lint/rules/useTemplate.md b/website/src/pages/lint/rules/useTemplate.md index 950c64673a6..3394146a667 100644 --- a/website/src/pages/lint/rules/useTemplate.md +++ b/website/src/pages/lint/rules/useTemplate.md @@ -1,6 +1,5 @@ --- title: Lint Rule useTemplate -layout: /Layout.astro --- # useTemplate (since v0.7.0) diff --git a/website/src/pages/lint/rules/useValidAnchor.md b/website/src/pages/lint/rules/useValidAnchor.md index 324b502c752..c072053d4b3 100644 --- a/website/src/pages/lint/rules/useValidAnchor.md +++ b/website/src/pages/lint/rules/useValidAnchor.md @@ -1,6 +1,5 @@ --- title: Lint Rule useValidAnchor -layout: /Layout.astro --- # useValidAnchor (since v10.0.0) diff --git a/website/src/pages/lint/rules/useValidForDirection.md b/website/src/pages/lint/rules/useValidForDirection.md index c9321ccddff..e15de5e933f 100644 --- a/website/src/pages/lint/rules/useValidForDirection.md +++ b/website/src/pages/lint/rules/useValidForDirection.md @@ -1,6 +1,5 @@ --- title: Lint Rule useValidForDirection -layout: /Layout.astro --- # useValidForDirection (since v10.0.0) diff --git a/website/src/pages/lint/rules/useValidTypeof.md b/website/src/pages/lint/rules/useValidTypeof.md index 1fd367041b6..a62abce7217 100644 --- a/website/src/pages/lint/rules/useValidTypeof.md +++ b/website/src/pages/lint/rules/useValidTypeof.md @@ -1,6 +1,5 @@ --- title: Lint Rule useValidTypeof -layout: /Layout.astro --- # useValidTypeof (since v0.7.0) diff --git a/website/src/pages/lint/rules/useWhile.md b/website/src/pages/lint/rules/useWhile.md index bc94d123f82..6362e852f40 100644 --- a/website/src/pages/lint/rules/useWhile.md +++ b/website/src/pages/lint/rules/useWhile.md @@ -1,6 +1,5 @@ --- title: Lint Rule useWhile -layout: /Layout.astro --- # useWhile (since v0.7.0) diff --git a/website/src/pages/linter/index.mdx b/website/src/pages/linter/index.mdx index c276ab24f05..09948a9a542 100644 --- a/website/src/pages/linter/index.mdx +++ b/website/src/pages/linter/index.mdx @@ -1,5 +1,4 @@ --- -layout: /Layout.astro title: Linter emoji: ✅ category: tools diff --git a/website/src/pages/standalone-executable.mdx b/website/src/pages/standalone-executable.mdx index f8785346944..15641838255 100644 --- a/website/src/pages/standalone-executable.mdx +++ b/website/src/pages/standalone-executable.mdx @@ -1,6 +1,5 @@ --- title: Standalone Executable -layout: /Layout.astro --- # Standalone CLI diff --git a/xtask/lintdoc/src/main.rs b/xtask/lintdoc/src/main.rs index cd763a2fdac..241274bfc67 100644 --- a/xtask/lintdoc/src/main.rs +++ b/xtask/lintdoc/src/main.rs @@ -47,7 +47,6 @@ fn main() -> Result<()> { let mut reference_buffer = Vec::new(); writeln!(index, "---")?; writeln!(index, "title: Lint Rules")?; - writeln!(index, "layout: /Layout.astro")?; writeln!(index, "emoji: 📏")?; writeln!(index, "description: List of available lint rules.")?; writeln!(index, "category: reference")?; @@ -179,7 +178,6 @@ fn generate_rule( // Write the header for this lint rule writeln!(content, "---")?; writeln!(content, "title: Lint Rule {rule}")?; - writeln!(content, "layout: /Layout.astro")?; writeln!(content, "---")?; writeln!(content)?;