From bc2097832e999a667897bba5ba5baf171fbd6137 Mon Sep 17 00:00:00 2001 From: Miquel de Domingo Date: Wed, 27 Nov 2024 12:02:00 +0100 Subject: [PATCH] docs: correct rule docs --- docs/rules/no-deprecated-raw-special-elements.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/rules/no-deprecated-raw-special-elements.md b/docs/rules/no-deprecated-raw-special-elements.md index aa4254bf..cc7f3a64 100644 --- a/docs/rules/no-deprecated-raw-special-elements.md +++ b/docs/rules/no-deprecated-raw-special-elements.md @@ -7,14 +7,14 @@ description: 'Disallows valid Svelte 4 tags, that no are no longer valid in Svel # svelte/no-deprecated-raw-special-elements -> Disallows valid Svelte 4 tags, that no are no longer valid in Svelte 5 +> Recommends not using raw special elements in Svelte versions previous to 5. - :exclamation: **_This rule has not been released yet._** - :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule. ## :book: Rule Details -This rule reports the invalid usage of `head`, `body`, `window`, `document`, `element` and `options` HTML elements, **in Svelte 5**. These elements were valid in Svelte 4, but since Svelte 5 they must be used with `svelte:`. +This rule reports the usage of `head`, `body`, `window`, `document`, `element` and `options` HTML elements. These elements were valid in in versions proior to 5, but since Svelte 5 they must be used with `svelte:`. @@ -46,8 +46,6 @@ This rule reports the invalid usage of `head`, `body`, `window`, `document`, `el } ``` -- - ## :books: Further Reading - See special elements section in [Svelte docs](https://svelte.dev/docs/svelte/svelte-window)