From 1fcd94cc837bb5f19a4a15b6281606c246705202 Mon Sep 17 00:00:00 2001 From: Steve Dodier-Lazaro Date: Tue, 11 Feb 2025 15:16:45 +0100 Subject: [PATCH] docs: Improve formatting of rule examples --- docs/rules/meta-satisfies-type.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/rules/meta-satisfies-type.md b/docs/rules/meta-satisfies-type.md index a4b6910..277cfb5 100644 --- a/docs/rules/meta-satisfies-type.md +++ b/docs/rules/meta-satisfies-type.md @@ -14,13 +14,15 @@ Additionally, `satisfies` is preferred over type annotations (`const meta: Meta Examples of **incorrect** code for this rule: -```js +```ts export default { title: 'Button', args: { primary: true }, component: Button, } +``` +```ts const meta: Meta = { title: 'Button', args: { primary: true }, @@ -31,13 +33,15 @@ export default meta Examples of **correct** code for this rule: -```js +```ts export default { title: 'Button', args: { primary: true }, component: Button, } satisfies Meta +``` +```ts const meta = { title: 'Button', args: { primary: true },