elements",
- "pos": 37,
"start": {
"line": 5,
- "column": 5,
- "character": 37
+ "column": 5
},
"end": {
"line": 5,
- "column": 15,
- "character": 47
+ "column": 15
}
-}]
\ No newline at end of file
+}]
diff --git a/test/validator/samples/binding-invalid-value-global/errors.json b/test/validator/samples/binding-invalid-value-global/errors.json
index be23a21523..10ace85651 100644
--- a/test/validator/samples/binding-invalid-value-global/errors.json
+++ b/test/validator/samples/binding-invalid-value-global/errors.json
@@ -1,15 +1,12 @@
[{
"code": "binding-undeclared",
"message": "foo is not declared",
- "pos": 58,
"start": {
"line": 4,
- "column": 19,
- "character": 58
+ "column": 19
},
"end": {
"line": 4,
- "column": 22,
- "character": 61
+ "column": 22
}
}]
diff --git a/test/validator/samples/binding-invalid-value/errors.json b/test/validator/samples/binding-invalid-value/errors.json
index 07eb7b0f1c..3c358e995d 100644
--- a/test/validator/samples/binding-invalid-value/errors.json
+++ b/test/validator/samples/binding-invalid-value/errors.json
@@ -1,15 +1,12 @@
[{
"code": "binding-undeclared",
"message": "foo is not declared",
- "pos": 37,
"start": {
"line": 2,
- "column": 19,
- "character": 37
+ "column": 19
},
"end": {
"line": 2,
- "column": 22,
- "character": 40
+ "column": 22
}
-}]
\ No newline at end of file
+}]
diff --git a/test/validator/samples/binding-invalid/errors.json b/test/validator/samples/binding-invalid/errors.json
index 5021da41b6..9fd88e36f8 100644
--- a/test/validator/samples/binding-invalid/errors.json
+++ b/test/validator/samples/binding-invalid/errors.json
@@ -1,15 +1,12 @@
[{
"code": "invalid-binding",
"message": "'whatever' is not a valid binding",
- "pos": 40,
"start": {
"line": 5,
- "column": 5,
- "character": 40
+ "column": 5
},
"end": {
"line": 5,
- "column": 18,
- "character": 53
+ "column": 18
}
-}]
\ No newline at end of file
+}]
diff --git a/test/validator/samples/binding-let/errors.json b/test/validator/samples/binding-let/errors.json
index 6195a1c3ae..40f1ae1c2d 100644
--- a/test/validator/samples/binding-let/errors.json
+++ b/test/validator/samples/binding-let/errors.json
@@ -1,15 +1,12 @@
[{
"code": "invalid-binding",
"message": "Cannot bind to a variable declared with the let: directive",
- "pos": 52,
"start": {
"line": 6,
- "column": 8,
- "character": 52
+ "column": 8
},
"end": {
"line": 6,
- "column": 24,
- "character": 68
+ "column": 24
}
-}]
\ No newline at end of file
+}]
diff --git a/test/validator/samples/binding-select-multiple-dynamic/errors.json b/test/validator/samples/binding-select-multiple-dynamic/errors.json
index d7710a201a..7d5ea948c0 100644
--- a/test/validator/samples/binding-select-multiple-dynamic/errors.json
+++ b/test/validator/samples/binding-select-multiple-dynamic/errors.json
@@ -3,13 +3,10 @@
"message": "'multiple' attribute cannot be dynamic if select uses two-way binding",
"start": {
"line": 6,
- "column": 19,
- "character": 66
+ "column": 19
},
"end": {
"line": 6,
- "column": 29,
- "character": 76
- },
- "pos": 66
-}]
\ No newline at end of file
+ "column": 29
+ }
+}]
diff --git a/test/validator/samples/component-dynamic/warnings.json b/test/validator/samples/component-dynamic/warnings.json
index 457ef11a1e..6814a9a3e9 100644
--- a/test/validator/samples/component-dynamic/warnings.json
+++ b/test/validator/samples/component-dynamic/warnings.json
@@ -2,14 +2,11 @@
{
"code": "reactive-component",
"message": "
will not be reactive if Let changes. Use
if you want this reactivity.",
- "pos": 190,
"end": {
- "character": 197,
"column": 7,
"line": 15
},
"start": {
- "character": 190,
"column": 0,
"line": 15
}
@@ -17,14 +14,11 @@
{
"message": " will not be reactive if ExportLet changes. Use if you want this reactivity.",
"code": "reactive-component",
- "pos": 198,
"end": {
- "character": 211,
"column": 13,
"line": 16
},
"start": {
- "character": 198,
"column": 0,
"line": 16
}
@@ -32,14 +26,11 @@
{
"message": " will not be reactive if Reactive changes. Use if you want this reactivity.",
"code": "reactive-component",
- "pos": 212,
"end": {
- "character": 224,
"column": 12,
"line": 17
},
"start": {
- "character": 212,
"column": 0,
"line": 17
}
diff --git a/test/validator/samples/component-event-modifiers-invalid/errors.json b/test/validator/samples/component-event-modifiers-invalid/errors.json
index da608063fe..41ef136dae 100644
--- a/test/validator/samples/component-event-modifiers-invalid/errors.json
+++ b/test/validator/samples/component-event-modifiers-invalid/errors.json
@@ -3,13 +3,10 @@
"code": "invalid-event-modifier",
"start": {
"line": 6,
- "column": 8,
- "character": 93
+ "column": 8
},
"end": {
"line": 6,
- "column": 40,
- "character": 125
- },
- "pos": 93
+ "column": 40
+ }
}]
diff --git a/test/validator/samples/component-invalid-style-directive/errors.json b/test/validator/samples/component-invalid-style-directive/errors.json
index 087f0db651..8c4a686766 100644
--- a/test/validator/samples/component-invalid-style-directive/errors.json
+++ b/test/validator/samples/component-invalid-style-directive/errors.json
@@ -2,8 +2,7 @@
{
"code": "invalid-component-style-directive",
"message": "Style directives cannot be used on components",
- "start": { "line": 7, "column": 19, "character": 97 },
- "end": { "line": 7, "column": 36, "character": 114 },
- "pos": 97
+ "start": { "line": 7, "column": 19 },
+ "end": { "line": 7, "column": 36 }
}
]
diff --git a/test/validator/samples/component-name-lowercase/warnings.json b/test/validator/samples/component-name-lowercase/warnings.json
index 57aac0c2a5..92f5a6f429 100644
--- a/test/validator/samples/component-name-lowercase/warnings.json
+++ b/test/validator/samples/component-name-lowercase/warnings.json
@@ -2,14 +2,11 @@
{
"code": "component-name-lowercase",
"message": " will be treated as an HTML element unless it begins with a capital letter",
- "pos": 121,
"start": {
- "character": 121,
"column": 0,
"line": 8
},
"end": {
- "character": 141,
"column": 20,
"line": 8
}
diff --git a/test/validator/samples/component-slot-default-duplicate.skip/errors.json b/test/validator/samples/component-slot-default-duplicate.skip/errors.json
index f60ddc8524..88aa10c916 100644
--- a/test/validator/samples/component-slot-default-duplicate.skip/errors.json
+++ b/test/validator/samples/component-slot-default-duplicate.skip/errors.json
@@ -3,6 +3,5 @@
"start": {
"line": 2,
"column": 0
- },
- "pos": 14
-}]
\ No newline at end of file
+ }
+}]
diff --git a/test/validator/samples/component-slot-default-reserved/errors.json b/test/validator/samples/component-slot-default-reserved/errors.json
index cefb00da8d..e14f693966 100644
--- a/test/validator/samples/component-slot-default-reserved/errors.json
+++ b/test/validator/samples/component-slot-default-reserved/errors.json
@@ -3,13 +3,10 @@
"message": "default is a reserved word — it cannot be used as a slot name",
"start": {
"line": 1,
- "column": 6,
- "character": 6
+ "column": 6
},
"end": {
"line": 1,
- "column": 20,
- "character": 20
- },
- "pos": 6
-}]
\ No newline at end of file
+ "column": 20
+ }
+}]
diff --git a/test/validator/samples/component-slot-dynamic-attribute/errors.json b/test/validator/samples/component-slot-dynamic-attribute/errors.json
index 8944f9cd3e..e99ab7bd50 100644
--- a/test/validator/samples/component-slot-dynamic-attribute/errors.json
+++ b/test/validator/samples/component-slot-dynamic-attribute/errors.json
@@ -3,13 +3,10 @@
"message": "slot attribute cannot have a dynamic value",
"start": {
"line": 6,
- "column": 9,
- "character": 77
+ "column": 9
},
"end": {
"line": 6,
- "column": 19,
- "character": 87
- },
- "pos": 77
-}]
\ No newline at end of file
+ "column": 19
+ }
+}]
diff --git a/test/validator/samples/component-slot-dynamic/errors.json b/test/validator/samples/component-slot-dynamic/errors.json
index 959aa87fd2..a449d253ef 100644
--- a/test/validator/samples/component-slot-dynamic/errors.json
+++ b/test/validator/samples/component-slot-dynamic/errors.json
@@ -3,13 +3,10 @@
"message": " name cannot be dynamic",
"start": {
"line": 1,
- "column": 6,
- "character": 6
+ "column": 6
},
"end": {
"line": 1,
- "column": 18,
- "character": 18
- },
- "pos": 6
-}]
\ No newline at end of file
+ "column": 18
+ }
+}]
diff --git a/test/validator/samples/component-slot-named-duplicate.skip/errors.json b/test/validator/samples/component-slot-named-duplicate.skip/errors.json
index 8e5d995da6..cf83e4db0b 100644
--- a/test/validator/samples/component-slot-named-duplicate.skip/errors.json
+++ b/test/validator/samples/component-slot-named-duplicate.skip/errors.json
@@ -3,6 +3,5 @@
"start": {
"line": 2,
"column": 6
- },
- "pos": 31
-}]
\ No newline at end of file
+ }
+}]
diff --git a/test/validator/samples/component-slotted-custom-element-2/errors.json b/test/validator/samples/component-slotted-custom-element-2/errors.json
index 06be51d72d..a0be2a67ac 100644
--- a/test/validator/samples/component-slotted-custom-element-2/errors.json
+++ b/test/validator/samples/component-slotted-custom-element-2/errors.json
@@ -2,8 +2,7 @@
{
"code": "invalid-slotted-content",
"message": "Element with a slot='...' attribute must be a child of a component or a descendant of a custom element",
- "start": { "line": 10, "column": 9, "character": 138 },
- "end": { "line": 10, "column": 19, "character": 148 },
- "pos": 138
+ "start": { "line": 10, "column": 9 },
+ "end": { "line": 10, "column": 19 }
}
]
diff --git a/test/validator/samples/component-slotted-each-block/errors.json b/test/validator/samples/component-slotted-each-block/errors.json
index 2944acae17..b6e46fff00 100644
--- a/test/validator/samples/component-slotted-each-block/errors.json
+++ b/test/validator/samples/component-slotted-each-block/errors.json
@@ -3,13 +3,10 @@
"message": "Element with a slot='...' attribute must be a child of a component or a descendant of a custom element",
"start": {
"line": 7,
- "column": 7,
- "character": 100
+ "column": 7
},
"end": {
"line": 7,
- "column": 17,
- "character": 110
- },
- "pos": 100
-}]
\ No newline at end of file
+ "column": 17
+ }
+}]
diff --git a/test/validator/samples/component-slotted-if-block/errors.json b/test/validator/samples/component-slotted-if-block/errors.json
index 3ae07c1b3b..b6e46fff00 100644
--- a/test/validator/samples/component-slotted-if-block/errors.json
+++ b/test/validator/samples/component-slotted-if-block/errors.json
@@ -3,13 +3,10 @@
"message": "Element with a slot='...' attribute must be a child of a component or a descendant of a custom element",
"start": {
"line": 7,
- "column": 7,
- "character": 88
+ "column": 7
},
"end": {
"line": 7,
- "column": 17,
- "character": 98
- },
- "pos": 88
-}]
\ No newline at end of file
+ "column": 17
+ }
+}]
diff --git a/test/validator/samples/const-tag-conflict-1/errors.json b/test/validator/samples/const-tag-conflict-1/errors.json
index 59c72eccaf..d92528566a 100644
--- a/test/validator/samples/const-tag-conflict-1/errors.json
+++ b/test/validator/samples/const-tag-conflict-1/errors.json
@@ -2,8 +2,7 @@
{
"code": "invalid-const-declaration",
"message": "'a' has already been declared",
- "start": { "line": 7, "column": 2, "character": 84 },
- "end": { "line": 7, "column": 19, "character": 101 },
- "pos": 84
+ "start": { "line": 7, "column": 2 },
+ "end": { "line": 7, "column": 19 }
}
]
diff --git a/test/validator/samples/const-tag-conflict-2/errors.json b/test/validator/samples/const-tag-conflict-2/errors.json
index 11e2535091..7636f8fcbc 100644
--- a/test/validator/samples/const-tag-conflict-2/errors.json
+++ b/test/validator/samples/const-tag-conflict-2/errors.json
@@ -2,8 +2,7 @@
{
"code": "invalid-const-declaration",
"message": "'item' has already been declared",
- "start": { "line": 6, "column": 2, "character": 64 },
- "end": { "line": 6, "column": 21, "character": 83 },
- "pos": 64
+ "start": { "line": 6, "column": 2 },
+ "end": { "line": 6, "column": 21 }
}
]
diff --git a/test/validator/samples/const-tag-cyclical/errors.json b/test/validator/samples/const-tag-cyclical/errors.json
index 1436747798..2b13e575cf 100644
--- a/test/validator/samples/const-tag-cyclical/errors.json
+++ b/test/validator/samples/const-tag-cyclical/errors.json
@@ -2,8 +2,7 @@
{
"code": "cyclical-const-tags",
"message": "Cyclical dependency detected: b → c → b",
- "start": { "line": 6, "column": 2, "character": 61 },
- "end": { "line": 6, "column": 20, "character": 79 },
- "pos": 61
+ "start": { "line": 6, "column": 2 },
+ "end": { "line": 6, "column": 20 }
}
]
diff --git a/test/validator/samples/const-tag-out-of-scope/warnings.json b/test/validator/samples/const-tag-out-of-scope/warnings.json
index c85b417fe4..37696bf417 100644
--- a/test/validator/samples/const-tag-out-of-scope/warnings.json
+++ b/test/validator/samples/const-tag-out-of-scope/warnings.json
@@ -2,14 +2,11 @@
{
"code": "missing-declaration",
"message": "'b' is not defined",
- "pos": 100,
"start": {
- "character": 100,
"column": 1,
"line": 10
},
"end": {
- "character": 101,
"column": 2,
"line": 10
}
diff --git a/test/validator/samples/const-tag-placement-1/errors.json b/test/validator/samples/const-tag-placement-1/errors.json
index 5291b3a351..f90fcf80ab 100644
--- a/test/validator/samples/const-tag-placement-1/errors.json
+++ b/test/validator/samples/const-tag-placement-1/errors.json
@@ -2,8 +2,7 @@
{
"code": "invalid-const-placement",
"message": "{@const} must be the immediate child of {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, or ",
- "start": { "line": 5, "column": 0, "character": 36 },
- "end": { "line": 5, "column": 18, "character": 54 },
- "pos": 36
+ "start": { "line": 5, "column": 0 },
+ "end": { "line": 5, "column": 18 }
}
]
diff --git a/test/validator/samples/const-tag-placement-2/errors.json b/test/validator/samples/const-tag-placement-2/errors.json
index 9922063a1d..1124d0b4f8 100644
--- a/test/validator/samples/const-tag-placement-2/errors.json
+++ b/test/validator/samples/const-tag-placement-2/errors.json
@@ -2,8 +2,7 @@
{
"code": "invalid-const-placement",
"message": "{@const} must be the immediate child of {#if}, {:else if}, {:else}, {#each}, {:then}, {:catch}, or ",
- "start": { "line": 7, "column": 4, "character": 63 },
- "end": { "line": 7, "column": 18, "character": 77 },
- "pos": 63
+ "start": { "line": 7, "column": 4 },
+ "end": { "line": 7, "column": 18 }
}
]
diff --git a/test/validator/samples/const-tag-readonly-1/errors.json b/test/validator/samples/const-tag-readonly-1/errors.json
index ed60c529fd..8aa10a4d80 100644
--- a/test/validator/samples/const-tag-readonly-1/errors.json
+++ b/test/validator/samples/const-tag-readonly-1/errors.json
@@ -2,8 +2,7 @@
{
"code": "invalid-const-update",
"message": "'b' is declared using {@const ...} and is read-only",
- "start": { "line": 7, "column": 26, "character": 106 },
- "end": { "line": 7, "column": 30, "character": 110 },
- "pos": 106
+ "start": { "line": 7, "column": 26 },
+ "end": { "line": 7, "column": 30 }
}
]
diff --git a/test/validator/samples/const-tag-readonly-2/errors.json b/test/validator/samples/const-tag-readonly-2/errors.json
index 746a21e86a..15307d637e 100644
--- a/test/validator/samples/const-tag-readonly-2/errors.json
+++ b/test/validator/samples/const-tag-readonly-2/errors.json
@@ -2,8 +2,7 @@
{
"code": "invalid-binding",
"message": "Cannot bind to a variable declared with {@const ...}",
- "start": { "line": 7, "column": 9, "character": 89 },
- "end": { "line": 7, "column": 23, "character": 103 },
- "pos": 89
+ "start": { "line": 7, "column": 9 },
+ "end": { "line": 7, "column": 23 }
}
]
diff --git a/test/validator/samples/contenteditable-dynamic/errors.json b/test/validator/samples/contenteditable-dynamic/errors.json
index 0c4c5585a6..b01a089809 100644
--- a/test/validator/samples/contenteditable-dynamic/errors.json
+++ b/test/validator/samples/contenteditable-dynamic/errors.json
@@ -3,13 +3,10 @@
"message": "'contenteditable' attribute cannot be dynamic if element uses two-way binding",
"start": {
"line": 6,
- "column": 8,
- "character": 73
+ "column": 8
},
"end": {
"line": 6,
- "column": 32,
- "character": 97
- },
- "pos": 73
-}]
\ No newline at end of file
+ "column": 32
+ }
+}]
diff --git a/test/validator/samples/contenteditable-missing/errors.json b/test/validator/samples/contenteditable-missing/errors.json
index 53d5af4928..23df8e6d83 100644
--- a/test/validator/samples/contenteditable-missing/errors.json
+++ b/test/validator/samples/contenteditable-missing/errors.json
@@ -3,13 +3,10 @@
"message": "'contenteditable' attribute is required for textContent and innerHTML two-way bindings",
"start": {
"line": 4,
- "column": 8,
- "character": 48
+ "column": 8
},
"end": {
"line": 4,
- "column": 31,
- "character": 71
- },
- "pos": 48
-}]
\ No newline at end of file
+ "column": 31
+ }
+}]
diff --git a/test/validator/samples/css-invalid-combinator-selector-1/errors.json b/test/validator/samples/css-invalid-combinator-selector-1/errors.json
index b50fb678f0..3bce9fbc01 100644
--- a/test/validator/samples/css-invalid-combinator-selector-1/errors.json
+++ b/test/validator/samples/css-invalid-combinator-selector-1/errors.json
@@ -2,8 +2,7 @@
{
"code": "css-invalid-selector",
"message": "Invalid selector \"> span\"",
- "start": { "line": 10, "column": 1, "character": 88 },
- "end": { "line": 10, "column": 7, "character": 94 },
- "pos": 88
+ "start": { "line": 10, "column": 1 },
+ "end": { "line": 10, "column": 7 }
}
]
diff --git a/test/validator/samples/css-invalid-combinator-selector-2/errors.json b/test/validator/samples/css-invalid-combinator-selector-2/errors.json
index 8c55da03c8..38305e106b 100644
--- a/test/validator/samples/css-invalid-combinator-selector-2/errors.json
+++ b/test/validator/samples/css-invalid-combinator-selector-2/errors.json
@@ -2,8 +2,7 @@
{
"code": "css-invalid-selector",
"message": "Invalid selector \"+ p\"",
- "start": { "line": 8, "column": 1, "character": 68 },
- "end": { "line": 8, "column": 4, "character": 71 },
- "pos": 68
+ "start": { "line": 8, "column": 1 },
+ "end": { "line": 8, "column": 4 }
}
]
diff --git a/test/validator/samples/css-invalid-combinator-selector-3/errors.json b/test/validator/samples/css-invalid-combinator-selector-3/errors.json
index 869cc09c95..ad35720249 100644
--- a/test/validator/samples/css-invalid-combinator-selector-3/errors.json
+++ b/test/validator/samples/css-invalid-combinator-selector-3/errors.json
@@ -2,8 +2,7 @@
{
"code": "css-invalid-selector",
"message": "Invalid selector \"> span\"",
- "start": { "line": 5, "column": 2, "character": 44 },
- "end": { "line": 5, "column": 8, "character": 50 },
- "pos": 44
+ "start": { "line": 5, "column": 2 },
+ "end": { "line": 5, "column": 8 }
}
]
diff --git a/test/validator/samples/css-invalid-combinator-selector-4/errors.json b/test/validator/samples/css-invalid-combinator-selector-4/errors.json
index 239704f48e..78b0815863 100644
--- a/test/validator/samples/css-invalid-combinator-selector-4/errors.json
+++ b/test/validator/samples/css-invalid-combinator-selector-4/errors.json
@@ -2,8 +2,7 @@
{
"code": "css-invalid-selector",
"message": "Invalid selector \"p >\"",
- "start": { "line": 4, "column": 1, "character": 26 },
- "end": { "line": 4, "column": 4, "character": 29 },
- "pos": 26
+ "start": { "line": 4, "column": 1 },
+ "end": { "line": 4, "column": 4 }
}
]
diff --git a/test/validator/samples/css-invalid-global-placement-2/errors.json b/test/validator/samples/css-invalid-global-placement-2/errors.json
index 4594469cc2..a5b7fdcac2 100644
--- a/test/validator/samples/css-invalid-global-placement-2/errors.json
+++ b/test/validator/samples/css-invalid-global-placement-2/errors.json
@@ -3,13 +3,10 @@
"message": ":global(...) can be at the start or end of a selector sequence, but not in the middle",
"start": {
"line": 2,
- "column": 6,
- "character": 14
+ "column": 6
},
"end": {
"line": 2,
- "column": 19,
- "character": 27
- },
- "pos": 14
+ "column": 19
+ }
}]
diff --git a/test/validator/samples/css-invalid-global-placement-3/errors.json b/test/validator/samples/css-invalid-global-placement-3/errors.json
index dc9d605c2c..796604895c 100644
--- a/test/validator/samples/css-invalid-global-placement-3/errors.json
+++ b/test/validator/samples/css-invalid-global-placement-3/errors.json
@@ -3,13 +3,10 @@
"message": ":global(...) can be at the start or end of a selector sequence, but not in the middle",
"start": {
"line": 5,
- "column": 6,
- "character": 60
+ "column": 6
},
"end": {
"line": 5,
- "column": 19,
- "character": 73
- },
- "pos": 60
+ "column": 19
+ }
}]
diff --git a/test/validator/samples/css-invalid-global-placement/errors.json b/test/validator/samples/css-invalid-global-placement/errors.json
index 6e7e9be0ce..a5b7fdcac2 100644
--- a/test/validator/samples/css-invalid-global-placement/errors.json
+++ b/test/validator/samples/css-invalid-global-placement/errors.json
@@ -3,13 +3,10 @@
"message": ":global(...) can be at the start or end of a selector sequence, but not in the middle",
"start": {
"line": 2,
- "column": 6,
- "character": 14
+ "column": 6
},
"end": {
"line": 2,
- "column": 19,
- "character": 27
- },
- "pos": 14
-}]
\ No newline at end of file
+ "column": 19
+ }
+}]
diff --git a/test/validator/samples/css-invalid-global-selector-2/errors.json b/test/validator/samples/css-invalid-global-selector-2/errors.json
index 3317925b00..3049ff71ef 100644
--- a/test/validator/samples/css-invalid-global-selector-2/errors.json
+++ b/test/validator/samples/css-invalid-global-selector-2/errors.json
@@ -4,14 +4,11 @@
"message": ":global(...) must contain a single selector",
"start": {
"line": 11,
- "column": 5,
- "character": 156
+ "column": 5
},
"end": {
"line": 11,
- "column": 29,
- "character": 180
- },
- "pos": 156
+ "column": 29
+ }
}
]
diff --git a/test/validator/samples/css-invalid-global-selector-3/errors.json b/test/validator/samples/css-invalid-global-selector-3/errors.json
index abc516a504..651acb3089 100644
--- a/test/validator/samples/css-invalid-global-selector-3/errors.json
+++ b/test/validator/samples/css-invalid-global-selector-3/errors.json
@@ -4,14 +4,11 @@
"message": ":global(...) must contain a single selector",
"start": {
"line": 5,
- "column": 5,
- "character": 77
+ "column": 5
},
"end": {
"line": 5,
- "column": 44,
- "character": 116
- },
- "pos": 77
+ "column": 44
+ }
}
]
diff --git a/test/validator/samples/css-invalid-global-selector-4/errors.json b/test/validator/samples/css-invalid-global-selector-4/errors.json
index 8d76cb63c0..c1bb229deb 100644
--- a/test/validator/samples/css-invalid-global-selector-4/errors.json
+++ b/test/validator/samples/css-invalid-global-selector-4/errors.json
@@ -4,14 +4,11 @@
"message": ":global(...) must contain a single selector",
"start": {
"line": 2,
- "column": 5,
- "character": 13
+ "column": 5
},
"end": {
"line": 2,
- "column": 24,
- "character": 32
- },
- "pos": 13
+ "column": 24
+ }
}
]
diff --git a/test/validator/samples/css-invalid-global-selector-5/errors.json b/test/validator/samples/css-invalid-global-selector-5/errors.json
index 8129b236e6..9efd2be5a2 100644
--- a/test/validator/samples/css-invalid-global-selector-5/errors.json
+++ b/test/validator/samples/css-invalid-global-selector-5/errors.json
@@ -4,14 +4,11 @@
"message": ":global(...) must contain a single selector",
"start": {
"line": 5,
- "column": 1,
- "character": 54
+ "column": 1
},
"end": {
"line": 5,
- "column": 20,
- "character": 73
- },
- "pos": 54
+ "column": 20
+ }
}
]
diff --git a/test/validator/samples/css-invalid-global-selector-6/errors.json b/test/validator/samples/css-invalid-global-selector-6/errors.json
index 8129b236e6..9efd2be5a2 100644
--- a/test/validator/samples/css-invalid-global-selector-6/errors.json
+++ b/test/validator/samples/css-invalid-global-selector-6/errors.json
@@ -4,14 +4,11 @@
"message": ":global(...) must contain a single selector",
"start": {
"line": 5,
- "column": 1,
- "character": 54
+ "column": 1
},
"end": {
"line": 5,
- "column": 20,
- "character": 73
- },
- "pos": 54
+ "column": 20
+ }
}
]
diff --git a/test/validator/samples/css-invalid-global-selector/errors.json b/test/validator/samples/css-invalid-global-selector/errors.json
index 7b2d5123b0..c7ef17faf9 100644
--- a/test/validator/samples/css-invalid-global-selector/errors.json
+++ b/test/validator/samples/css-invalid-global-selector/errors.json
@@ -4,14 +4,11 @@
"message": ":global(...) must contain a single selector",
"start": {
"line": 11,
- "column": 5,
- "character": 143
+ "column": 5
},
"end": {
"line": 11,
- "column": 24,
- "character": 162
- },
- "pos": 143
+ "column": 24
+ }
}
]
diff --git a/test/validator/samples/debug-invalid-args/errors.json b/test/validator/samples/debug-invalid-args/errors.json
index a92fb017a1..642d7e001e 100644
--- a/test/validator/samples/debug-invalid-args/errors.json
+++ b/test/validator/samples/debug-invalid-args/errors.json
@@ -3,13 +3,10 @@
"message": "{@debug ...} arguments must be identifiers, not arbitrary expressions",
"start": {
"line": 2,
- "column": 9,
- "character": 13
+ "column": 9
},
"end": {
"line": 2,
- "column": 9,
- "character": 13
- },
- "pos": 13
-}]
\ No newline at end of file
+ "column": 9
+ }
+}]
diff --git a/test/validator/samples/default-export-anonymous-class/errors.json b/test/validator/samples/default-export-anonymous-class/errors.json
index 0a410e5eda..66746ad84c 100644
--- a/test/validator/samples/default-export-anonymous-class/errors.json
+++ b/test/validator/samples/default-export-anonymous-class/errors.json
@@ -1,15 +1,12 @@
[{
"code": "default-export",
"message": "A component cannot have a default export",
- "pos": 10,
"start": {
"line": 2,
- "column": 1,
- "character": 10
+ "column": 1
},
"end": {
"line": 2,
- "column": 30,
- "character": 39
+ "column": 30
}
}]
diff --git a/test/validator/samples/default-export-anonymous-function/errors.json b/test/validator/samples/default-export-anonymous-function/errors.json
index 1f144e8392..dd80d7f77c 100644
--- a/test/validator/samples/default-export-anonymous-function/errors.json
+++ b/test/validator/samples/default-export-anonymous-function/errors.json
@@ -1,15 +1,12 @@
[{
"code": "default-export",
"message": "A component cannot have a default export",
- "pos": 10,
"start": {
"line": 2,
- "column": 1,
- "character": 10
+ "column": 1
},
"end": {
"line": 2,
- "column": 24,
- "character": 33
+ "column": 24
}
}]
diff --git a/test/validator/samples/default-export/errors.json b/test/validator/samples/default-export/errors.json
index 45544fe4a1..2141aabadb 100644
--- a/test/validator/samples/default-export/errors.json
+++ b/test/validator/samples/default-export/errors.json
@@ -1,15 +1,12 @@
[{
"code": "default-export",
"message": "A component cannot have a default export",
- "pos": 10,
"start": {
"line": 2,
- "column": 1,
- "character": 10
+ "column": 1
},
"end": {
"line": 2,
- "column": 19,
- "character": 28
+ "column": 19
}
}]
diff --git a/test/validator/samples/directive-non-expression/errors.json b/test/validator/samples/directive-non-expression/errors.json
index c606963b68..996e1a9a4d 100644
--- a/test/validator/samples/directive-non-expression/errors.json
+++ b/test/validator/samples/directive-non-expression/errors.json
@@ -1,15 +1,12 @@
[{
"code": "invalid-directive-value",
"message": "Directive value must be a JavaScript expression enclosed in curly braces",
- "pos": 15,
"start": {
"line": 1,
- "column": 15,
- "character": 15
+ "column": 15
},
"end": {
"line": 1,
- "column": 15,
- "character": 15
+ "column": 15
}
-}]
\ No newline at end of file
+}]
diff --git a/test/validator/samples/dollar-dollar-global-in-markup/errors.json b/test/validator/samples/dollar-dollar-global-in-markup/errors.json
index 4730c5152e..da11fa4ecd 100644
--- a/test/validator/samples/dollar-dollar-global-in-markup/errors.json
+++ b/test/validator/samples/dollar-dollar-global-in-markup/errors.json
@@ -1,15 +1,12 @@
[{
"code": "illegal-global",
"message": "$$billsyall is an illegal variable name",
- "pos": 1,
"start": {
"line": 1,
- "column": 1,
- "character": 1
+ "column": 1
},
"end": {
"line": 1,
- "column": 12,
- "character": 12
+ "column": 12
}
-}]
\ No newline at end of file
+}]
diff --git a/test/validator/samples/dollar-dollar-global-in-script/errors.json b/test/validator/samples/dollar-dollar-global-in-script/errors.json
index 5c923e35f7..515b14db1f 100644
--- a/test/validator/samples/dollar-dollar-global-in-script/errors.json
+++ b/test/validator/samples/dollar-dollar-global-in-script/errors.json
@@ -1,15 +1,12 @@
[{
"code": "illegal-global",
"message": "$$billsyall is an illegal variable name",
- "pos": 10,
"start": {
"line": 2,
- "column": 1,
- "character": 10
+ "column": 1
},
"end": {
"line": 2,
- "column": 12,
- "character": 21
+ "column": 12
}
-}]
\ No newline at end of file
+}]
diff --git a/test/validator/samples/dollar-global-in-markup/errors.json b/test/validator/samples/dollar-global-in-markup/errors.json
index 6cdf67e872..90ffe78459 100644
--- a/test/validator/samples/dollar-global-in-markup/errors.json
+++ b/test/validator/samples/dollar-global-in-markup/errors.json
@@ -1,15 +1,12 @@
[{
"code": "illegal-global",
"message": "$ is an illegal variable name",
- "pos": 1,
"start": {
"line": 1,
- "column": 1,
- "character": 1
+ "column": 1
},
"end": {
"line": 1,
- "column": 2,
- "character": 2
+ "column": 2
}
-}]
\ No newline at end of file
+}]
diff --git a/test/validator/samples/dollar-global-in-script/errors.json b/test/validator/samples/dollar-global-in-script/errors.json
index 2a6bd7ce7a..d1b90ac288 100644
--- a/test/validator/samples/dollar-global-in-script/errors.json
+++ b/test/validator/samples/dollar-global-in-script/errors.json
@@ -1,15 +1,12 @@
[{
"code": "illegal-global",
"message": "$ is an illegal variable name",
- "pos": 10,
"start": {
"line": 2,
- "column": 1,
- "character": 10
+ "column": 1
},
"end": {
"line": 2,
- "column": 2,
- "character": 11
+ "column": 2
}
-}]
\ No newline at end of file
+}]
diff --git a/test/validator/samples/dynamic-element-invalid-tag/errors.json b/test/validator/samples/dynamic-element-invalid-tag/errors.json
index c8d3c52490..591a1ce540 100644
--- a/test/validator/samples/dynamic-element-invalid-tag/errors.json
+++ b/test/validator/samples/dynamic-element-invalid-tag/errors.json
@@ -4,14 +4,11 @@
"code": "invalid-element-definition",
"start": {
"line": 2,
- "column": 17,
- "character": 23
+ "column": 17
},
"end": {
"line": 2,
- "column": 17,
- "character": 23
- },
- "pos": 23
+ "column": 17
+ }
}
]
diff --git a/test/validator/samples/dynamic-element-missing-tag/errors.json b/test/validator/samples/dynamic-element-missing-tag/errors.json
index 8243deeb80..0f2cee5a2a 100644
--- a/test/validator/samples/dynamic-element-missing-tag/errors.json
+++ b/test/validator/samples/dynamic-element-missing-tag/errors.json
@@ -3,13 +3,10 @@
"message": " must have a 'this' attribute",
"start": {
"line": 2,
- "column": 1,
- "character": 7
+ "column": 1
},
"end": {
"line": 2,
- "column": 1,
- "character": 7
- },
- "pos": 7
+ "column": 1
+ }
}]
diff --git a/test/validator/samples/dynamic-element-this/errors.json b/test/validator/samples/dynamic-element-this/errors.json
index 7d61c20ee2..c7294a10c8 100644
--- a/test/validator/samples/dynamic-element-this/errors.json
+++ b/test/validator/samples/dynamic-element-this/errors.json
@@ -3,13 +3,10 @@
"message": "'this' is a reserved word in JavaScript and cannot be used here",
"start": {
"line": 2,
- "column": 18,
- "character": 24
+ "column": 18
},
"end": {
"line": 2,
- "column": 18,
- "character": 24
- },
- "pos": 24
+ "column": 18
+ }
}]
diff --git a/test/validator/samples/each-block-destructured-object-rest-comma-after/errors.json b/test/validator/samples/each-block-destructured-object-rest-comma-after/errors.json
index df899b7702..7d88595e4b 100644
--- a/test/validator/samples/each-block-destructured-object-rest-comma-after/errors.json
+++ b/test/validator/samples/each-block-destructured-object-rest-comma-after/errors.json
@@ -1,15 +1,12 @@
[{
"code": "parse-error",
"message": "Comma is not permitted after the rest element",
- "pos": 100,
"start": {
"line": 5,
- "column": 53,
- "character": 100
+ "column": 53
},
"end": {
"line": 5,
- "column": 53,
- "character": 100
+ "column": 53
}
}]
diff --git a/test/validator/samples/each-block-invalid-context-destructured-object/errors.json b/test/validator/samples/each-block-invalid-context-destructured-object/errors.json
index c96e3d2c8c..1bc273844c 100644
--- a/test/validator/samples/each-block-invalid-context-destructured-object/errors.json
+++ b/test/validator/samples/each-block-invalid-context-destructured-object/errors.json
@@ -3,13 +3,10 @@
"message": "Unexpected keyword 'case'",
"start": {
"line": 1,
- "column": 18,
- "character": 18
+ "column": 18
},
"end": {
"line": 1,
- "column": 18,
- "character": 18
- },
- "pos": 18
+ "column": 18
+ }
}]
diff --git a/test/validator/samples/each-block-invalid-context-destructured/errors.json b/test/validator/samples/each-block-invalid-context-destructured/errors.json
index 62d6f62e87..51bf42e575 100644
--- a/test/validator/samples/each-block-invalid-context-destructured/errors.json
+++ b/test/validator/samples/each-block-invalid-context-destructured/errors.json
@@ -3,13 +3,10 @@
"message": "Unexpected token",
"start": {
"line": 1,
- "column": 17,
- "character": 17
+ "column": 17
},
"end": {
"line": 1,
- "column": 17,
- "character": 17
- },
- "pos": 17
-}]
\ No newline at end of file
+ "column": 17
+ }
+}]
diff --git a/test/validator/samples/each-block-invalid-context/errors.json b/test/validator/samples/each-block-invalid-context/errors.json
index f997aa269f..898551f1cb 100644
--- a/test/validator/samples/each-block-invalid-context/errors.json
+++ b/test/validator/samples/each-block-invalid-context/errors.json
@@ -3,13 +3,10 @@
"message": "'case' is a reserved word in JavaScript and cannot be used here",
"start": {
"line": 1,
- "column": 16,
- "character": 16
+ "column": 16
},
"end": {
"line": 1,
- "column": 16,
- "character": 16
- },
- "pos": 16
-}]
\ No newline at end of file
+ "column": 16
+ }
+}]
diff --git a/test/validator/samples/empty-block/warnings.json b/test/validator/samples/empty-block/warnings.json
index d563970425..11ca8e204e 100644
--- a/test/validator/samples/empty-block/warnings.json
+++ b/test/validator/samples/empty-block/warnings.json
@@ -4,29 +4,23 @@
"message": "Empty block",
"start": {
"line": 5,
- "column": 0,
- "character": 38
+ "column": 0
},
"end": {
"line": 7,
- "column": 7,
- "character": 70
- },
- "pos": 38
+ "column": 7
+ }
},
{
"code": "empty-block",
"message": "Empty block",
"start": {
"line": 9,
- "column": 0,
- "character": 72
+ "column": 0
},
"end": {
"line": 9,
- "column": 30,
- "character": 102
- },
- "pos": 72
+ "column": 30
+ }
}
-]
\ No newline at end of file
+]
diff --git a/test/validator/samples/error-mode-warn/warnings.json b/test/validator/samples/error-mode-warn/warnings.json
index cce6324df5..cf2963c959 100644
--- a/test/validator/samples/error-mode-warn/warnings.json
+++ b/test/validator/samples/error-mode-warn/warnings.json
@@ -2,29 +2,23 @@
{
"code": "invalid-binding",
"message": "Cannot bind to a variable which is not writable",
- "pos": 61,
"start": {
"line": 5,
- "column": 19,
- "character": 61
+ "column": 19
},
"end": {
"line": 5,
- "column": 24,
- "character": 66
+ "column": 24
}
},
{
"code": "missing-declaration",
"message": "'undeclared' is not defined",
- "pos": 88,
"start": {
- "character": 88,
"column": 19,
"line": 6
},
"end": {
- "character": 98,
"column": 29,
"line": 6
}
@@ -32,16 +26,13 @@
{
"code": "binding-undeclared",
"message": "undeclared is not declared",
- "pos": 88,
"end": {
- "character": 98,
"column": 29,
"line": 6
},
"start": {
- "character": 88,
"column": 19,
"line": 6
}
}
-]
\ No newline at end of file
+]
diff --git a/test/validator/samples/event-modifiers-invalid-nonpassive/errors.json b/test/validator/samples/event-modifiers-invalid-nonpassive/errors.json
index a7e5a2a76c..3772fcef49 100644
--- a/test/validator/samples/event-modifiers-invalid-nonpassive/errors.json
+++ b/test/validator/samples/event-modifiers-invalid-nonpassive/errors.json
@@ -3,13 +3,10 @@
"code": "invalid-event-modifier",
"start": {
"line": 1,
- "column": 5,
- "character": 5
+ "column": 5
},
"end": {
"line": 1,
- "column": 51,
- "character": 51
- },
- "pos": 5
+ "column": 51
+ }
}]
diff --git a/test/validator/samples/event-modifiers-invalid-passive/errors.json b/test/validator/samples/event-modifiers-invalid-passive/errors.json
index 93807d0a4e..a92927685d 100644
--- a/test/validator/samples/event-modifiers-invalid-passive/errors.json
+++ b/test/validator/samples/event-modifiers-invalid-passive/errors.json
@@ -3,13 +3,10 @@
"code": "invalid-event-modifier",
"start": {
"line": 1,
- "column": 5,
- "character": 5
+ "column": 5
},
"end": {
"line": 1,
- "column": 50,
- "character": 50
- },
- "pos": 5
+ "column": 50
+ }
}]
diff --git a/test/validator/samples/event-modifiers-invalid/errors.json b/test/validator/samples/event-modifiers-invalid/errors.json
index ea6de4ce34..628bf2eaed 100644
--- a/test/validator/samples/event-modifiers-invalid/errors.json
+++ b/test/validator/samples/event-modifiers-invalid/errors.json
@@ -3,13 +3,10 @@
"code": "invalid-event-modifier",
"start": {
"line": 1,
- "column": 8,
- "character": 8
+ "column": 8
},
"end": {
"line": 1,
- "column": 34,
- "character": 34
- },
- "pos": 8
+ "column": 34
+ }
}]
diff --git a/test/validator/samples/event-modifiers-legacy/errors.json b/test/validator/samples/event-modifiers-legacy/errors.json
index 2e340b7b2f..cb6c345476 100644
--- a/test/validator/samples/event-modifiers-legacy/errors.json
+++ b/test/validator/samples/event-modifiers-legacy/errors.json
@@ -3,13 +3,10 @@
"code": "invalid-event-modifier",
"start": {
"line": 1,
- "column": 8,
- "character": 8
+ "column": 8
},
"end": {
"line": 1,
- "column": 37,
- "character": 37
- },
- "pos": 8
+ "column": 37
+ }
}]
diff --git a/test/validator/samples/event-modifiers-redundant/warnings.json b/test/validator/samples/event-modifiers-redundant/warnings.json
index e3b9110427..e5ff27b728 100644
--- a/test/validator/samples/event-modifiers-redundant/warnings.json
+++ b/test/validator/samples/event-modifiers-redundant/warnings.json
@@ -4,29 +4,23 @@
"code": "redundant-event-modifier",
"start": {
"line": 11,
- "column": 8,
- "character": 110
+ "column": 8
},
"end": {
"line": 11,
- "column": 40,
- "character": 142
- },
- "pos": 110
+ "column": 40
+ }
},
{
"message": "Touch event handlers that don't use the 'event' object are passive by default",
"code": "redundant-event-modifier",
"start": {
"line": 12,
- "column": 5,
- "character": 158
+ "column": 5
},
"end": {
"line": 12,
- "column": 47,
- "character": 200
- },
- "pos": 158
+ "column": 47
+ }
}
]
diff --git a/test/validator/samples/html-block-in-attribute/errors.json b/test/validator/samples/html-block-in-attribute/errors.json
index 7cfe43dc0b..3e73629dc0 100644
--- a/test/validator/samples/html-block-in-attribute/errors.json
+++ b/test/validator/samples/html-block-in-attribute/errors.json
@@ -2,8 +2,7 @@
{
"code": "invalid-tag-placement",
"message": "{@html} tag cannot be in attribute value",
- "start": { "line": 1, "column": 12, "character": 12 },
- "end": { "line": 1, "column": 12, "character": 12 },
- "pos": 12
+ "start": { "line": 1, "column": 12 },
+ "end": { "line": 1, "column": 12 }
}
]
diff --git a/test/validator/samples/html-block-in-textarea/errors.json b/test/validator/samples/html-block-in-textarea/errors.json
index 756fa5ad3e..ea01211d4a 100644
--- a/test/validator/samples/html-block-in-textarea/errors.json
+++ b/test/validator/samples/html-block-in-textarea/errors.json
@@ -2,8 +2,7 @@
{
"code": "invalid-tag-placement",
"message": "{@html} tag cannot be inside