mirror of https://github.com/sveltejs/svelte
parent
e73b258c70
commit
48298db60e
@ -1,17 +1,19 @@
|
||||
export default {
|
||||
warnings: [{
|
||||
code: "avoid-is",
|
||||
warnings: [
|
||||
{
|
||||
code: 'avoid-is',
|
||||
message: "The 'is' attribute is not supported cross-browser and should be avoided",
|
||||
pos: 98,
|
||||
start: {
|
||||
character: 98,
|
||||
column: 8,
|
||||
line: 7
|
||||
// pos: 98,
|
||||
// start: {
|
||||
// character: 98,
|
||||
// column: 8,
|
||||
// line: 7
|
||||
// },
|
||||
// end: {
|
||||
// character: 116,
|
||||
// column: 26,
|
||||
// line: 7
|
||||
// }
|
||||
},
|
||||
end: {
|
||||
character: 116,
|
||||
column: 26,
|
||||
line: 7
|
||||
}
|
||||
}]
|
||||
],
|
||||
};
|
||||
|
@ -1,17 +1,20 @@
|
||||
export default {
|
||||
warnings: [{
|
||||
code: "custom-element-no-tag",
|
||||
message: "No custom element 'tag' option was specified. To automatically register a custom element, specify a name with a hyphen in it, e.g. <svelte:options tag=\"my-thing\"/>. To hide this warning, use <svelte:options tag={null}/>",
|
||||
pos: 0,
|
||||
start: {
|
||||
character: 0,
|
||||
column: 0,
|
||||
line: 1
|
||||
warnings: [
|
||||
{
|
||||
code: 'custom-element-no-tag',
|
||||
message:
|
||||
'No custom element \'tag\' option was specified. To automatically register a custom element, specify a name with a hyphen in it, e.g. <svelte:options tag="my-thing"/>. To hide this warning, use <svelte:options tag={null}/>',
|
||||
// pos: 0,
|
||||
// start: {
|
||||
// character: 0,
|
||||
// column: 0,
|
||||
// line: 1
|
||||
// },
|
||||
// end: {
|
||||
// character: 0,
|
||||
// column: 0,
|
||||
// line: 1
|
||||
// }
|
||||
},
|
||||
end: {
|
||||
character: 0,
|
||||
column: 0,
|
||||
line: 1
|
||||
}
|
||||
}]
|
||||
],
|
||||
};
|
||||
|
@ -1,17 +1,20 @@
|
||||
export default {
|
||||
warnings: [{
|
||||
code: "custom-element-no-tag",
|
||||
message: "No custom element 'tag' option was specified. To automatically register a custom element, specify a name with a hyphen in it, e.g. <svelte:options tag=\"my-thing\"/>. To hide this warning, use <svelte:options tag={null}/>",
|
||||
pos: 0,
|
||||
start: {
|
||||
character: 0,
|
||||
column: 0,
|
||||
line: 1
|
||||
warnings: [
|
||||
{
|
||||
code: 'custom-element-no-tag',
|
||||
message:
|
||||
'No custom element \'tag\' option was specified. To automatically register a custom element, specify a name with a hyphen in it, e.g. <svelte:options tag="my-thing"/>. To hide this warning, use <svelte:options tag={null}/>',
|
||||
// pos: 0,
|
||||
// start: {
|
||||
// character: 0,
|
||||
// column: 0,
|
||||
// line: 1
|
||||
// },
|
||||
// end: {
|
||||
// character: 18,
|
||||
// column: 18,
|
||||
// line: 1
|
||||
// }
|
||||
},
|
||||
end: {
|
||||
character: 18,
|
||||
column: 18,
|
||||
line: 1
|
||||
}
|
||||
}]
|
||||
],
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
<title>Some Title</title>
|
||||
<link href="/" rel="canonical">
|
||||
<meta content="some description" name="description">
|
||||
<meta content="some keywords" name="keywords">
|
||||
<link href="/" rel="canonical" />
|
||||
<meta content="some description" name="description" />
|
||||
<meta content="some keywords" name="keywords" />
|
||||
|
@ -1,4 +1,4 @@
|
||||
<title>Some Title</title>
|
||||
<link rel="canonical" href="/" data-svelte="svelte-1s8aodm">
|
||||
<meta name="description" content="some description" data-svelte="svelte-1s8aodm">
|
||||
<meta name="keywords" content="some keywords" data-svelte="svelte-1s8aodm">
|
||||
<link rel="canonical" href="/" data-svelte="svelte-1t0pfk9" />
|
||||
<meta name="description" content="some description" data-svelte="svelte-1t0pfk9" />
|
||||
<meta name="keywords" content="some keywords" data-svelte="svelte-1t0pfk9" />
|
||||
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "duplicate-attribute",
|
||||
"message": "Attributes need to be unique",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 17,
|
||||
"character": 17
|
||||
},
|
||||
"pos": 17
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 17,
|
||||
"character": 17
|
||||
},
|
||||
"pos": 17,
|
||||
"frame": "1: <Widget foo={42} bind:foo/>\n ^",
|
||||
"message": "Attributes need to be unique"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "duplicate-attribute",
|
||||
"message": "Attributes need to be unique",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 17,
|
||||
"character": 17
|
||||
},
|
||||
"pos": 17
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 17,
|
||||
"character": 17
|
||||
},
|
||||
"pos": 17,
|
||||
"frame": "1: <div class='foo' class='bar'></div>\n ^",
|
||||
"message": "Attributes need to be unique"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "duplicate-attribute",
|
||||
"message": "Attributes need to be unique",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 17,
|
||||
"character": 17
|
||||
},
|
||||
"pos": 17
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 17,
|
||||
"character": 17
|
||||
},
|
||||
"pos": 17,
|
||||
"frame": "1: <div title='foo' {title}></div>\n ^",
|
||||
"message": "Attributes need to be unique"
|
||||
}
|
@ -1,6 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-catch-placement",
|
||||
"message": "Expected to close {#each} block before seeing {:catch} block",
|
||||
"start": { "line": 3, "column": 7, "character": 41 },
|
||||
"pos": 41
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 7,
|
||||
"character": 43
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 7,
|
||||
"character": 43
|
||||
},
|
||||
"pos": 43,
|
||||
"frame": "1: {#await true}\r\n2: {#each foo as bar}\r\n3: {:catch f}\r\n ^\n4: {/await}",
|
||||
"message": "Expected to close {#each} block before seeing {:catch} block"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-catch-placement",
|
||||
"message": "Cannot have an {:catch} block outside an {#await ...} block",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 7,
|
||||
"character": 7
|
||||
},
|
||||
"pos": 7
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 7,
|
||||
"character": 7
|
||||
},
|
||||
"pos": 7,
|
||||
"frame": "1: {:catch theValue}\n ^",
|
||||
"message": "Cannot have an {:catch} block outside an {#await ...} block"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "unexpected-eof",
|
||||
"message": "comment was left open, expected -->",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 24,
|
||||
"character": 24
|
||||
},
|
||||
"pos": 24
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 24,
|
||||
"character": 24
|
||||
},
|
||||
"pos": 24,
|
||||
"frame": "1: <!-- an unclosed comment\n ^",
|
||||
"message": "comment was left open, expected -->"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "css-syntax-error",
|
||||
"message": "LeftCurlyBracket is expected",
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 16,
|
||||
"character": 24
|
||||
"character": 25
|
||||
},
|
||||
"pos": 24
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 16,
|
||||
"character": 25
|
||||
},
|
||||
"pos": 25,
|
||||
"frame": "1: <style>\r\n2: this is not css\r\n ^\n3: </style>",
|
||||
"message": "LeftCurlyBracket is expected"
|
||||
}
|
@ -1,6 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-else-placement",
|
||||
"message": "Expected to close {#await} block before seeing {:else} block",
|
||||
"start": { "line": 3, "column": 6, "character": 29 },
|
||||
"pos": 29
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 6,
|
||||
"character": 31
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 6,
|
||||
"character": 31
|
||||
},
|
||||
"pos": 31,
|
||||
"frame": "1: {#if true}\r\n2: {#await p}\r\n3: {:else}\r\n ^\n4: {/if}",
|
||||
"message": "Expected to close {#await} block before seeing {:else} block"
|
||||
}
|
@ -1,6 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-else-placement",
|
||||
"message": "Cannot have an {:else} block outside an {#if ...} or {#each ...} block",
|
||||
"start": { "line": 2, "column": 6, "character": 11 },
|
||||
"pos": 11
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 6,
|
||||
"character": 12
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 6,
|
||||
"character": 12
|
||||
},
|
||||
"pos": 12,
|
||||
"frame": "1: <li>\r\n2: {:else}\n ^",
|
||||
"message": "Cannot have an {:else} block outside an {#if ...} or {#each ...} block"
|
||||
}
|
@ -1,6 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-else-placement",
|
||||
"message": "Expected to close <li> tag before seeing {:else} block",
|
||||
"start": { "line": 3, "column": 6, "character": 23 },
|
||||
"pos": 23
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 6,
|
||||
"character": 25
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 6,
|
||||
"character": 25
|
||||
},
|
||||
"pos": 25,
|
||||
"frame": "1: {#if true}\r\n2: <li>\r\n3: {:else}\r\n ^\n4: {/if}",
|
||||
"message": "Expected to close <li> tag before seeing {:else} block"
|
||||
}
|
@ -1,6 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-elseif-placement",
|
||||
"message": "Expected to close <p> tag before seeing {:else if ...} block",
|
||||
"start": { "line": 3, "column": 9, "character": 25 },
|
||||
"pos": 25
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 9,
|
||||
"character": 27
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 9,
|
||||
"character": 27
|
||||
},
|
||||
"pos": 27,
|
||||
"frame": "1: {#if true}\r\n2: <p>\r\n3: {:else if false}\r\n ^\n4: {/if}",
|
||||
"message": "Expected to close <p> tag before seeing {:else if ...} block"
|
||||
}
|
@ -1,6 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-elseif-placement",
|
||||
"message": "Expected to close {#await} block before seeing {:else if ...} block",
|
||||
"start": { "line": 3, "column": 9, "character": 34 },
|
||||
"pos": 34
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 9,
|
||||
"character": 36
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 9,
|
||||
"character": 36
|
||||
},
|
||||
"pos": 36,
|
||||
"frame": "1: {#if true}\r\n2: {#await foo}\r\n3: {:else if false}\r\n ^\n4: {/if}",
|
||||
"message": "Expected to close {#await} block before seeing {:else if ...} block"
|
||||
}
|
@ -1,6 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-elseif-placement",
|
||||
"message": "Cannot have an {:else if ...} block outside an {#if ...} block",
|
||||
"start": { "line": 3, "column": 10, "character": 35 },
|
||||
"pos": 35
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 10,
|
||||
"character": 37
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 10,
|
||||
"character": 37
|
||||
},
|
||||
"pos": 37,
|
||||
"frame": "1: {#await foo}\r\n2: {:then bar}\r\n3: {:else if}\r\n ^\n4: {/await}",
|
||||
"message": "Cannot have an {:else if ...} block outside an {#if ...} block"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "parse-error",
|
||||
"message": "Assigning to rvalue",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 1,
|
||||
"character": 1
|
||||
},
|
||||
"pos": 1
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 1,
|
||||
"character": 1
|
||||
},
|
||||
"pos": 1,
|
||||
"frame": "1: {42 = nope}\n ^",
|
||||
"message": "Assigning to rvalue"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "duplicate-style",
|
||||
"message": "You can only have one top-level <style> tag per component",
|
||||
"start": {
|
||||
"line": 9,
|
||||
"column": 0,
|
||||
"character": 58
|
||||
"character": 66
|
||||
},
|
||||
"pos": 58
|
||||
"end": {
|
||||
"line": 9,
|
||||
"column": 0,
|
||||
"character": 66
|
||||
},
|
||||
"pos": 66,
|
||||
"frame": " 7: </style>\r\n 8: \r\n 9: <style>\r\n ^\n10: div {\r\n11: color: blue;\r",
|
||||
"message": "You can only have one top-level <style> tag per component"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "unclosed-script",
|
||||
"message": "<script> must have a closing tag",
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 8,
|
||||
"character": 32
|
||||
"character": 34
|
||||
},
|
||||
"pos": 32
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 8,
|
||||
"character": 34
|
||||
},
|
||||
"pos": 34,
|
||||
"frame": "1: <h1>Hello {name}!</h1>\r\n2: \r\n3: <script>\n ^",
|
||||
"message": "<script> must have a closing tag"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-self-placement",
|
||||
"message": "<svelte:self> components can only exist inside {#if} blocks, {#each} blocks, or slots passed to components",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 1,
|
||||
"character": 1
|
||||
},
|
||||
"pos": 1
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 1,
|
||||
"character": 1
|
||||
},
|
||||
"pos": 1,
|
||||
"frame": "1: <svelte:self/>\n ^",
|
||||
"message": "<svelte:self> components can only exist inside {#if} blocks, {#each} blocks, or slots passed to components"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-tag-name",
|
||||
"message": "Valid <svelte:...> tag names are svelte:head, svelte:options, svelte:window, svelte:body, svelte:self or svelte:component",
|
||||
"pos": 10,
|
||||
"start": {
|
||||
"character": 10,
|
||||
"line": 2,
|
||||
"column": 2
|
||||
}
|
||||
"column": 2,
|
||||
"character": 11
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 2,
|
||||
"character": 11
|
||||
},
|
||||
"pos": 11,
|
||||
"frame": "1: {#if x}\r\n2: <svelte:selfdestructive x=\"{x - 1}\"/>\r\n ^\n3: {/if}",
|
||||
"message": "Valid <svelte:...> tag names are svelte:head, svelte:options, svelte:window, svelte:body, svelte:selfor svelte:component"
|
||||
}
|
@ -1,6 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-then-placement",
|
||||
"message": "Expected to close <li> tag before seeing {:then} block",
|
||||
"start": { "line": 3, "column": 6, "character": 26 },
|
||||
"pos": 26
|
||||
"start": {
|
||||
"line": 3,
|
||||
"column": 6,
|
||||
"character": 28
|
||||
},
|
||||
"end": {
|
||||
"line": 3,
|
||||
"column": 6,
|
||||
"character": 28
|
||||
},
|
||||
"pos": 28,
|
||||
"frame": "1: {#await true}\r\n2: <li>\r\n3: {:then f}\r\n ^\n4: {/await}",
|
||||
"message": "Expected to close <li> tag before seeing {:then} block"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "invalid-then-placement",
|
||||
"message": "Cannot have an {:then} block outside an {#await ...} block",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 6,
|
||||
"character": 6
|
||||
},
|
||||
"pos": 6
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 6,
|
||||
"character": 6
|
||||
},
|
||||
"pos": 6,
|
||||
"frame": "1: {:then theValue}\n ^",
|
||||
"message": "Cannot have an {:then} block outside an {#await ...} block"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "unexpected-eof",
|
||||
"message": "Unexpected end of input",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 2,
|
||||
"character": 2
|
||||
},
|
||||
"pos": 2
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 2,
|
||||
"character": 2
|
||||
},
|
||||
"pos": 2,
|
||||
"frame": "1: <d\n ^",
|
||||
"message": "Unexpected end of input"
|
||||
}
|
@ -1,10 +1,17 @@
|
||||
{
|
||||
"name": "ParseError",
|
||||
"code": "unexpected-eof",
|
||||
"message": "Unexpected end of input",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 1,
|
||||
"character": 1
|
||||
},
|
||||
"pos": 1
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 1,
|
||||
"character": 1
|
||||
},
|
||||
"pos": 1,
|
||||
"frame": "1: <\n ^",
|
||||
"message": "Unexpected end of input"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue