diff --git a/packages/svelte/src/compiler/compile/compiler_warnings.js b/packages/svelte/src/compiler/compile/compiler_warnings.js
index acd9409734e6..46cb9a3f2709 100644
--- a/packages/svelte/src/compiler/compile/compiler_warnings.js
+++ b/packages/svelte/src/compiler/compile/compiler_warnings.js
@@ -10,9 +10,9 @@ export default {
* @param {string} component
* @param {string} property
*/ (component, property) => ({
- code: 'unused-export-let',
- message: `${component} has unused export property '${property}'. If it is for external reference only, please consider using \`export const ${property}\``
- }),
+ code: 'unused-export-let',
+ message: `${component} has unused export property '${property}'. If it is for external reference only, please consider using \`export const ${property}\``
+ }),
module_script_reactive_declaration: {
code: 'module-script-reactive-declaration',
message: '$: has no effect in a module script'
@@ -23,21 +23,20 @@ export default {
},
module_script_variable_reactive_declaration: /** @param {string[]} names */ (names) => ({
code: 'module-script-reactive-declaration',
- message: `${names.map((name) => `"${name}"`).join(', ')} ${
- names.length > 1 ? 'are' : 'is'
- } declared in a module script and will not be reactive`
+ message: `${names.map((name) => `"${name}"`).join(', ')} ${names.length > 1 ? 'are' : 'is'
+ } declared in a module script and will not be reactive`
}),
missing_declaration: /**
* @param {string} name
* @param {boolean} has_script
*/ (name, has_script) => ({
- code: 'missing-declaration',
- message:
- `'${name}' is not defined` +
- (has_script
- ? ''
- : `. Consider adding a
+
+
\ No newline at end of file
diff --git a/packages/svelte/test/validator/samples/binding-custom-element/warnings.json b/packages/svelte/test/validator/samples/binding-custom-element/warnings.json
new file mode 100644
index 000000000000..bb74219ec73d
--- /dev/null
+++ b/packages/svelte/test/validator/samples/binding-custom-element/warnings.json
@@ -0,0 +1,14 @@
+[
+ {
+ "code": "binding-custom-element",
+ "message": "Binding on custom element is not strongly checked. You need to ensure 'value' is a valid property.",
+ "start": {
+ "line": 5,
+ "column": 12
+ },
+ "end": {
+ "line": 5,
+ "column": 22
+ }
+ }
+]
\ No newline at end of file