From 1575d6be200be2cab731576ffe06b0488dc216c4 Mon Sep 17 00:00:00 2001 From: nissy-dev Date: Thu, 4 May 2023 17:55:46 +0900 Subject: [PATCH] fix: codegen --- website/src/pages/lint/rules/index.mdx | 2 +- .../src/pages/lint/rules/useIframeTitle.md | 96 ++++++++----------- 2 files changed, 41 insertions(+), 57 deletions(-) diff --git a/website/src/pages/lint/rules/index.mdx b/website/src/pages/lint/rules/index.mdx index 91459620118..c1edc237011 100644 --- a/website/src/pages/lint/rules/index.mdx +++ b/website/src/pages/lint/rules/index.mdx @@ -116,7 +116,7 @@ Enforce that html element has lang attribute. useIframeTitle recommended -Enforces the usage of the attribute title for the element iframe +Enforces the usage of the attribute title for the element iframe.

diff --git a/website/src/pages/lint/rules/useIframeTitle.md b/website/src/pages/lint/rules/useIframeTitle.md index f5604ff28a5..2ae87b13bcd 100644 --- a/website/src/pages/lint/rules/useIframeTitle.md +++ b/website/src/pages/lint/rules/useIframeTitle.md @@ -7,22 +7,22 @@ parent: lint/rules/index > This rule is recommended by Rome. -Enforces the usage of the attribute `title` for the element `iframe` +Enforces the usage of the attribute `title` for the element `iframe`. ## Examples ### Invalid ```jsx - + ``` -
a11y/useIframeTitle.js:1:5 lint/a11y/useIframeTitle ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
+
a11y/useIframeTitle.js:1:1 lint/a11y/useIframeTitle ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 
    Provide a title attribute when using iframe elements.
   
-  > 1 │     <iframe></iframe>
-       ^^^^^^^^
+  > 1 │ <iframe></iframe>
+   ^^^^^^^^
     2 │ 
   
    Screen readers rely on the title set on an iframe to describe the content being displayed.
@@ -46,15 +46,15 @@ Enforces the usage of the attribute `title` for the element `iframe`
 
```jsx - +