lint, tests

pull/8457/head
Simon Holthausen 3 years ago
parent 5804b695e7
commit ad003924c3

@ -1577,7 +1577,7 @@ function process_component_options(component: Component, nodes) {
switch (name) {
case 'tag': {
component.warn(attribute, compiler_warnings.tag_option_deprecated)
component.warn(attribute, compiler_warnings.tag_option_deprecated);
parse_tag(attribute, get_value(attribute, compiler_errors.invalid_tag_attribute));
break;
}

@ -32,7 +32,7 @@ export default {
}),
missing_custom_element_compile_options: {
code: 'missing-custom-element-compile-options',
message: "The 'tag' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?"
message: "The 'customElement' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?"
},
css_unused_selector: (selector: string) => ({
code: 'css-unused-selector',

@ -13,7 +13,7 @@ import {
} from "svelte/internal";
function add_css(target) {
append_styles(target, "svelte-66l35w", "div.svelte-66l35w{animation:svelte-66l35w-foo 1s}@keyframes svelte-66l35w-foo{0%{opacity:0}100%{opacity:1}}");
append_styles(target, "svelte-10axo0s", "div.svelte-10axo0s{animation:svelte-10axo0s-foo 1s}@keyframes svelte-10axo0s-foo{0%{opacity:0}100%{opacity:1}}");
}
function create_fragment(ctx) {
@ -23,7 +23,7 @@ function create_fragment(ctx) {
c() {
div = element("div");
div.textContent = "fades in";
attr(div, "class", "svelte-66l35w");
attr(div, "class", "svelte-10axo0s");
},
m(target, anchor) {
insert(target, div, anchor);

@ -2,10 +2,10 @@
{
"code": "missing-custom-element-compile-options",
"end": {
"column": 36,
"column": 46,
"line": 1
},
"message": "The 'tag' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?",
"message": "The 'customElement' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?",
"start": {
"column": 16,
"line": 1

@ -1,12 +1,12 @@
[{
"code": "missing-custom-element-compile-options",
"message": "The 'tag' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?",
"message": "The 'customElement' option is used when generating a custom element. Did you forget the 'customElement: true' compile option?",
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 36
"column": 46
}
}]

@ -7,6 +7,6 @@
},
"end": {
"line": 1,
"column": 29
"column": 39
}
}]

Loading…
Cancel
Save