prettier names

pull/6503/head
Simon Holthausen 5 years ago
parent d39fb2c00d
commit b0ba47ce7a

@ -1211,7 +1211,7 @@ export default class Component {
variable.is_reactive_dependency = true;
if (variable.module) {
should_add_as_dependency = false;
component.warn(node as any, compiler_warnings.module_script_reactive_declaration2(name));
component.warn(node as any, compiler_warnings.module_script_variable_reactive_declaration(name));
}
}
const is_writable_or_mutated =
@ -1415,10 +1415,10 @@ function process_component_options(component: Component, nodes) {
}
default:
component.error(attribute, compiler_errors.invalid_options_attribute);
component.error(attribute, compiler_errors.invalid_options_attribute_unknown);
}
} else {
component.error(attribute, compiler_errors.invalid_options_attribute2);
component.error(attribute, compiler_errors.invalid_options_attribute);
}
});
}

@ -218,11 +218,11 @@ export default {
code: `invalid-${name}-value`,
message: `${name} attribute must be true or false`
}),
invalid_options_attribute: {
invalid_options_attribute_unknown: {
code: 'invalid-options-attribute',
message: '<svelte:options> unknown attribute'
},
invalid_options_attribute2: {
invalid_options_attribute: {
code: 'invalid-options-attribute',
message: "<svelte:options> can only have static 'tag', 'namespace', 'accessors', 'immutable' and 'preserveWhitespace' attributes"
},

@ -20,7 +20,7 @@ export default {
code: 'non-top-level-reactive-declaration',
message: '$: has no effect outside of the top-level'
},
module_script_reactive_declaration2: (name: string) => ({
module_script_variable_reactive_declaration: (name: string) => ({
code: 'module-script-reactive-declaration',
message: `"${name}" is declared in a module script and will not be reactive`
}),

Loading…
Cancel
Save