Skip to content

Commit bc20978

Browse files
committed
docs: correct rule docs
1 parent 0ef42f3 commit bc20978

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/rules/no-deprecated-raw-special-elements.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ description: 'Disallows valid Svelte 4 tags, that no are no longer valid in Svel
77

88
# svelte/no-deprecated-raw-special-elements
99

10-
> Disallows valid Svelte 4 tags, that no are no longer valid in Svelte 5
10+
> Recommends not using raw special elements in Svelte versions previous to 5.
1111
1212
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
1313
- :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.
1414

1515
## :book: Rule Details
1616

17-
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:`.
17+
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:`.
1818

1919
<ESLintCodeBlock fix>
2020

@@ -46,8 +46,6 @@ This rule reports the invalid usage of `head`, `body`, `window`, `document`, `el
4646
}
4747
```
4848

49-
-
50-
5149
## :books: Further Reading
5250

5351
- See special elements section in [Svelte docs](https://svelte.dev/docs/svelte/svelte-window)

0 commit comments

Comments
 (0)