fixing lint issues

pull/18151/head
Elvin Seudieu 2 weeks ago
parent a4905410df
commit 0ba5dee5e2

@ -697,12 +697,6 @@ Using `on:%name%` to listen to the %name% event is deprecated. Use the event att
See [the migration guide](v5-migration-guide#Event-changes) for more info.
### head_in_component
```
A `<head>` tag was detected in file `%filename%`, component `%component%`, at line %line%. This can lead to runtime errors. Did you mean to use `<svelte:head>`?
```
### export_let_unused
```

@ -83,9 +83,6 @@ In a future version of Svelte, self-closing tags may be upgraded from a warning
See [the migration guide](v5-migration-guide#Event-changes) for more info.
## head_in_component
> A `<head>` tag was detected in file `%filename%`, component `%component%`, at line %line%. This can lead to runtime errors. Did you mean to use `<svelte:head>`?
## node_invalid_placement_ssr
> %message%. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a `hydration_mismatch` warning

@ -1,18 +1,21 @@
import { test } from '../../assert';
export default test({
warnings: [{
code: "head_in_component",
message: "A `<head>` tag was detected in file `(unknown)`, component `_unknown_`, at line 1. This can lead to runtime errors. Did you mean to use `<svelte:head>`?\nhttps://svelte.dev/e/head_in_component",
start: {
line: 1,
character: 0,
column: 0
},
end: {
line: 3,
character: 73,
column: 7
}
}]
warnings: [
{
code: 'head_in_component',
message:
'A `<head>` tag was detected in file `(unknown)`, component `_unknown_`, at line 1. This can lead to runtime errors. Did you mean to use `<svelte:head>`?\nhttps://svelte.dev/e/head_in_component',
start: {
line: 1,
character: 0,
column: 0
},
end: {
line: 3,
character: 73,
column: 7
}
}
]
});

Loading…
Cancel
Save