@ -155,7 +155,7 @@ export default class Component {
)||{start: 0,end: 0};
this.warn(svelteOptions,{
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}/>`
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}/>'
message:`${this.name.name} has unused export property '${specifier.exported.name}'. If it is for external reference only, please consider using \`export const ${specifier.exported.name}\``
});
}
@ -544,7 +544,7 @@ export default class Component {
if(name[0]==='$'){
this.error(nodeasany,{
code:'illegal-declaration',
message:`The $ prefix is reserved, and cannot be used for variable and import names`
message:'The $ prefix is reserved, and cannot be used for variable and import names'
});
}
@ -562,7 +562,7 @@ export default class Component {
if(name[0]==='$'){
this.error(nodeasany,{
code:'illegal-subscription',
message:`Cannot reference store value inside <script context="module">`
message:'Cannot reference store value inside <script context="module">'
});
}else{
this.add_var({
@ -623,7 +623,7 @@ export default class Component {
if(name[0]==='$'){
this.error(nodeasany,{
code:'illegal-declaration',
message:`The $ prefix is reserved, and cannot be used for variable and import names`
message:'The $ prefix is reserved, and cannot be used for variable and import names'
});
}
@ -859,8 +859,8 @@ export default class Component {
message:`A11y: on:blur must be used instead of on:change, unless absolutely necessary and it causes no negative consequences for keyboard only or screen reader users.`
code:'a11y-no-onchange',
message:'A11y: on:blur must be used instead of on:change, unless absolutely necessary and it causes no negative consequences for keyboard only or screen reader users.'
});
}
}
@ -569,8 +569,8 @@ export default class Element extends Node {
if(!attribute.is_static){
component.error(attribute,{
code:`invalid-type`,
message:`'type' attribute cannot be dynamic if input uses two-way binding`
code:'invalid-type',
message:'\'type\' attribute cannot be dynamic if input uses two-way binding'
});
}
@ -578,8 +578,8 @@ export default class Element extends Node {
if(value===true){
component.error(attribute,{
code:`missing-type`,
message:`'type' attribute must be specified`
code:'missing-type',
message:'\'type\' attribute must be specified'
});
}
@ -596,7 +596,7 @@ export default class Element extends Node {
this.name!=='select'
){
component.error(binding,{
code:`invalid-binding`,
code:'invalid-binding',
message:`'value' is not a valid binding on <${this.name}> elements`
});
}
@ -608,8 +608,8 @@ export default class Element extends Node {
if(attribute&&!attribute.is_static){
component.error(attribute,{
code:`dynamic-multiple-attribute`,
message:`'multiple' attribute cannot be dynamic if select uses two-way binding`
code:'dynamic-multiple-attribute',
message:'\'multiple\' attribute cannot be dynamic if select uses two-way binding'
});
}
}else{
@ -618,7 +618,7 @@ export default class Element extends Node {
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}/>",
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}/>',
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}/>",
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}/>',