mirror of https://github.com/sveltejs/svelte
parent
dae91eb65a
commit
d629fa1b7a
@ -1,21 +0,0 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
@ -1,3 +0,0 @@
|
||||
<head>
|
||||
<meta name="description" content="some description" />
|
||||
</head>
|
||||
@ -0,0 +1,3 @@
|
||||
<head>
|
||||
<meta name="description" content="some description" />
|
||||
</head>
|
||||
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "head_in_component",
|
||||
"message": "Using `<head>` ((unknown):1:0) will likely lead to runtime errors. Use [`<svelte:head>`](https://svelte.dev/e/head_in_component) instead",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 7
|
||||
}
|
||||
}
|
||||
]
|
||||
Loading…
Reference in new issue