Skip to content

Commit

Permalink
docs: correct rule docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikededo committed Nov 27, 2024
1 parent 0ef42f3 commit bc20978
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/rules/no-deprecated-raw-special-elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <badge text="This rule has not been released yet." vertical="middle" type="error"> **_This rule has not been released yet._** </badge>
- :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:`.

<ESLintCodeBlock fix>

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit bc20978

Please sign in to comment.