diff --git a/tests/lib/rules/attribute-hyphenation.js b/tests/lib/rules/attribute-hyphenation.js
index eac974e4e..08c1fb695 100644
--- a/tests/lib/rules/attribute-hyphenation.js
+++ b/tests/lib/rules/attribute-hyphenation.js
@@ -117,7 +117,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'my-prop' can't be hyphenated.",
- type: 'VIdentifier',
line: 1,
column: 24,
endLine: 1,
@@ -133,7 +132,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'MyProp' must be hyphenated.",
- type: 'VIdentifier',
line: 1,
column: 24,
endLine: 1,
@@ -150,7 +148,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':my-prop' can't be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -166,7 +163,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':MyProp' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -183,7 +179,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'v-bind:my-prop' can't be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -199,7 +194,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'v-bind:MyProp' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -215,7 +209,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'v-bind:MyProp' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -232,7 +225,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':second-prop' can't be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 46,
endLine: 1,
@@ -249,7 +241,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'v-bind:myProp' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -266,7 +257,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'v-bind:propID' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -284,7 +274,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'v-model:my-prop' can't be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -301,7 +290,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'v-model:myProp' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -317,7 +305,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'v-model:MyProp' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -345,7 +332,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'third-custom' can't be hyphenated.",
- type: 'VIdentifier',
line: 3,
column: 111,
endLine: 3,
@@ -373,7 +359,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'custom-hyphen' can't be hyphenated.",
- type: 'VIdentifier',
line: 3,
column: 71,
endLine: 3,
@@ -381,7 +366,6 @@ ruleTester.run('attribute-hyphenation', rule, {
},
{
message: "Attribute 'second-custom' can't be hyphenated.",
- type: 'VIdentifier',
line: 3,
column: 91,
endLine: 3,
@@ -397,7 +381,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'my-prop' can't be hyphenated.",
- type: 'VIdentifier',
line: 1,
column: 22,
endLine: 1,
@@ -413,7 +396,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'MyProp' must be hyphenated.",
- type: 'VIdentifier',
line: 1,
column: 22,
endLine: 1,
@@ -429,7 +411,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':attr_Gg' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -445,7 +426,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':Attr_Hh' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -461,7 +441,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':_attr_Jj' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -477,7 +456,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':_attrKk' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -493,7 +471,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':_AttrLl' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -509,7 +486,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':my-custom_prop' can't be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -525,7 +501,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':myAge.sync' must be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -541,7 +516,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute ':my-age.sync' can't be hyphenated.",
- type: 'VDirectiveKey',
line: 1,
column: 24,
endLine: 1,
@@ -566,7 +540,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'my-prop' can't be hyphenated.",
- type: 'VIdentifier',
line: 3,
column: 17,
endLine: 3,
@@ -591,7 +564,6 @@ ruleTester.run('attribute-hyphenation', rule, {
errors: [
{
message: "Attribute 'myProp' must be hyphenated.",
- type: 'VIdentifier',
line: 3,
column: 17,
endLine: 3,
diff --git a/tests/lib/rules/attributes-order.js b/tests/lib/rules/attributes-order.js
index edd58b23b..b5d73977e 100644
--- a/tests/lib/rules/attributes-order.js
+++ b/tests/lib/rules/attributes-order.js
@@ -693,7 +693,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "is" should go before "v-cloak".',
- type: 'VAttribute',
line: 1,
column: 24,
endLine: 1,
@@ -708,7 +707,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "v-cloak" should go before "id".',
- type: 'VAttribute',
line: 1,
column: 30,
endLine: 1,
@@ -737,7 +735,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "v-model" should go before "model".',
- type: 'VAttribute',
line: 4,
column: 15,
endLine: 4,
@@ -745,7 +742,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute ":id" should go before "propOne".',
- type: 'VAttribute',
line: 6,
column: 15,
endLine: 6,
@@ -776,7 +772,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "v-model" should go before "v-on".',
- type: 'VAttribute',
line: 6,
column: 15,
endLine: 6,
@@ -784,7 +779,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute "propOne" should go before "v-on".',
- type: 'VAttribute',
line: 7,
column: 15,
endLine: 7,
@@ -800,7 +794,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "is" should go before "aria-test".',
- type: 'VAttribute',
line: 1,
column: 46,
endLine: 1,
@@ -833,7 +826,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "is" should go before "propone".',
- type: 'VAttribute',
line: 1,
column: 44,
endLine: 1,
@@ -856,7 +848,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "is" should go before "v-cloak".',
- type: 'VAttribute',
line: 3,
column: 15,
endLine: 3,
@@ -899,7 +890,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "v-for" should go before "v-if".',
- type: 'VAttribute',
line: 4,
column: 15,
endLine: 4,
@@ -907,7 +897,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute "is" should go before "v-once".',
- type: 'VAttribute',
line: 6,
column: 15,
endLine: 6,
@@ -915,7 +904,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute "ref" should go before "v-on:click".',
- type: 'VAttribute',
line: 8,
column: 15,
endLine: 8,
@@ -923,7 +911,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute ":prop" should go before "v-on:click".',
- type: 'VAttribute',
line: 9,
column: 15,
endLine: 9,
@@ -931,7 +918,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute "id" should go before "v-text".',
- type: 'VAttribute',
line: 11,
column: 15,
endLine: 11,
@@ -939,7 +925,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute "myProp" should go before "v-text".',
- type: 'VAttribute',
line: 12,
column: 15,
endLine: 12,
@@ -999,7 +984,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "is" should go before "v-once".',
- type: 'VAttribute',
line: 6,
column: 15,
endLine: 6,
@@ -1007,7 +991,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute "v-on:click" should go before "v-once".',
- type: 'VAttribute',
line: 7,
column: 15,
endLine: 7,
@@ -1015,7 +998,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute "ref" should go before "v-once".',
- type: 'VAttribute',
line: 8,
column: 15,
endLine: 8,
@@ -1023,7 +1005,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute "id" should go before "v-text".',
- type: 'VAttribute',
line: 11,
column: 15,
endLine: 11,
@@ -1031,7 +1012,6 @@ tester.run('attributes-order', rule, {
},
{
message: 'Attribute "myProp" should go before "v-text".',
- type: 'VAttribute',
line: 12,
column: 15,
endLine: 12,
@@ -1076,7 +1056,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "v-if" should go before "class".',
- type: 'VAttribute',
line: 4,
column: 15,
endLine: 4,
@@ -1104,7 +1083,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "v-slot" should go before "v-model".',
- type: 'VAttribute',
line: 5,
column: 15,
endLine: 5,
@@ -1130,7 +1108,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "a-prop" should go before "z-prop".',
- type: 'VAttribute',
line: 4,
column: 13,
endLine: 4,
@@ -1156,7 +1133,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute ":a-prop" should go before ":z-prop".',
- type: 'VAttribute',
line: 4,
column: 13,
endLine: 4,
@@ -1182,7 +1158,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "@change" should go before "@input".',
- type: 'VAttribute',
line: 4,
column: 13,
endLine: 4,
@@ -1208,7 +1183,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "boolean-prop" should go before "z-prop".',
- type: 'VAttribute',
line: 4,
column: 13,
endLine: 4,
@@ -1234,7 +1208,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "v-on:[c]" should go before "v-on:click".',
- type: 'VAttribute',
line: 4,
column: 13,
endLine: 4,
@@ -1260,7 +1233,6 @@ tester.run('attributes-order', rule, {
errors: [
{
message: 'Attribute "v-on:click" should go before "v-text".',
- type: 'VAttribute',
line: 4,
column: 13,
endLine: 4,
diff --git a/tests/lib/rules/component-definition-name-casing.js b/tests/lib/rules/component-definition-name-casing.js
index 323461729..94d5347d8 100644
--- a/tests/lib/rules/component-definition-name-casing.js
+++ b/tests/lib/rules/component-definition-name-casing.js
@@ -191,7 +191,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo-bar" is not PascalCase.',
- type: 'Literal',
line: 3,
column: 17,
endLine: 3,
@@ -211,7 +210,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo bar" is not PascalCase.',
- type: 'Literal',
line: 3,
column: 17,
endLine: 3,
@@ -231,7 +229,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo!bar" is not PascalCase.',
- type: 'Literal',
line: 3,
column: 17,
endLine: 3,
@@ -251,7 +248,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo!bar" is not PascalCase.',
- type: 'Literal',
line: 3,
column: 17,
endLine: 3,
@@ -275,7 +271,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo_bar" is not PascalCase.',
- type: 'Literal',
line: 3,
column: 17,
endLine: 3,
@@ -300,7 +295,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo_bar" is not PascalCase.',
- type: 'Literal',
line: 3,
column: 17,
endLine: 3,
@@ -325,7 +319,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo_bar" is not kebab-case.',
- type: 'Literal',
line: 3,
column: 17,
endLine: 3,
@@ -341,7 +334,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo-bar" is not PascalCase.',
- type: 'Literal',
line: 1,
column: 15,
endLine: 1,
@@ -357,7 +349,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo-bar" is not PascalCase.',
- type: 'Literal',
line: 1,
column: 15,
endLine: 1,
@@ -376,7 +367,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo-bar" is not PascalCase.',
- type: 'Literal',
line: 1,
column: 40,
endLine: 1,
@@ -392,7 +382,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo-bar" is not PascalCase.',
- type: 'Literal',
line: 1,
column: 15,
endLine: 1,
@@ -408,7 +397,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo-bar" is not PascalCase.',
- type: 'Literal',
line: 1,
column: 15,
endLine: 1,
@@ -425,7 +413,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo_bar" is not PascalCase.',
- type: 'Literal',
line: 1,
column: 15,
endLine: 1,
@@ -442,7 +429,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo_bar" is not kebab-case.',
- type: 'Literal',
line: 1,
column: 15,
endLine: 1,
@@ -459,7 +445,6 @@ ruleTester.run('component-definition-name-casing', rule, {
errors: [
{
message: 'Property name "foo_bar" is not kebab-case.',
- type: 'TemplateLiteral',
line: 1,
column: 15,
endLine: 1,
diff --git a/tests/lib/rules/max-attributes-per-line.js b/tests/lib/rules/max-attributes-per-line.js
index 5b88f7857..8fd176be2 100644
--- a/tests/lib/rules/max-attributes-per-line.js
+++ b/tests/lib/rules/max-attributes-per-line.js
@@ -146,7 +146,6 @@ job="Vet">`,
errors: [
{
message: "'job' should be on a new line.",
- type: 'VAttribute',
line: 1,
column: 47,
endLine: 1,
@@ -170,7 +169,6 @@ age="30"
errors: [
{
message: "'age' should be on a new line.",
- type: 'VAttribute',
line: 2,
column: 25,
endLine: 2,
@@ -194,7 +192,6 @@ age="30"
errors: [
{
message: "'age' should be on a new line.",
- type: 'VAttribute',
line: 2,
column: 25,
endLine: 2,
diff --git a/tests/lib/rules/multiline-html-element-content-newline.js b/tests/lib/rules/multiline-html-element-content-newline.js
index 372d277fc..8d7d648c4 100644
--- a/tests/lib/rules/multiline-html-element-content-newline.js
+++ b/tests/lib/rules/multiline-html-element-content-newline.js
@@ -282,7 +282,6 @@ content
'Expected 1 line break after opening tag (`
`), but no line breaks found.',
line: 5,
column: 12,
- type: 'HTMLTagClose',
endLine: 5,
endColumn: 12
},
@@ -291,7 +290,6 @@ content
'Expected 1 line break before closing tag (`
`), but no line breaks found.',
line: 5,
column: 19,
- type: 'HTMLEndTagOpen',
endLine: 5,
endColumn: 19
}
diff --git a/tests/lib/rules/no-constant-condition.js b/tests/lib/rules/no-constant-condition.js
index 489944a11..38b2f94f7 100644
--- a/tests/lib/rules/no-constant-condition.js
+++ b/tests/lib/rules/no-constant-condition.js
@@ -23,7 +23,6 @@ tester.run('no-constant-condition', rule, {
errors: [
{
messageId: 'unexpected',
- type: 'UnaryExpression',
line: 1,
column: 31,
endLine: 1,
@@ -36,7 +35,6 @@ tester.run('no-constant-condition', rule, {
errors: [
{
messageId: 'unexpected',
- type: 'Literal',
line: 1,
column: 36,
endLine: 1,
@@ -49,7 +47,6 @@ tester.run('no-constant-condition', rule, {
errors: [
{
messageId: 'unexpected',
- type: 'Literal',
line: 1,
column: 31,
endLine: 1,
@@ -62,7 +59,6 @@ tester.run('no-constant-condition', rule, {
errors: [
{
messageId: 'unexpected',
- type: 'ObjectExpression',
line: 1,
column: 33,
endLine: 1,
@@ -75,7 +71,6 @@ tester.run('no-constant-condition', rule, {
errors: [
{
messageId: 'unexpected',
- type: 'BinaryExpression',
line: 1,
column: 31,
endLine: 1,
@@ -88,37 +83,33 @@ tester.run('no-constant-condition', rule, {
errors: [
{
messageId: 'unexpected',
- type: 'LogicalExpression',
line: 1,
column: 31,
endLine: 1,
endColumn: 37
}
]
- }
+ },
- // failing in Node.js v8, because template literals are not supported there:
- // {
- // code: '',
- // errors: [
- // {
- // messageId: 'unexpected',
- // type: 'TemplateLiteral',
- // column: 31,
- // endColumn: 36
- // }
- // ]
- // },
- // {
- // code: '',
- // errors: [
- // {
- // messageId: 'unexpected',
- // type: 'TemplateLiteral',
- // column: 31,
- // endColumn: 33
- // }
- // ]
- // }
+ {
+ code: '',
+ errors: [
+ {
+ messageId: 'unexpected',
+ column: 31,
+ endColumn: 36
+ }
+ ]
+ },
+ {
+ code: '',
+ errors: [
+ {
+ messageId: 'unexpected',
+ column: 31,
+ endColumn: 33
+ }
+ ]
+ }
]
})
diff --git a/tests/lib/rules/no-deprecated-vue-config-keycodes.js b/tests/lib/rules/no-deprecated-vue-config-keycodes.js
index 1a00c1c86..b0494f24d 100644
--- a/tests/lib/rules/no-deprecated-vue-config-keycodes.js
+++ b/tests/lib/rules/no-deprecated-vue-config-keycodes.js
@@ -36,7 +36,6 @@ ruleTester.run('no-deprecated-vue-config-keycodes', rule, {
message: '`Vue.config.keyCodes` are deprecated.',
line: 1,
column: 1,
- type: 'MemberExpression',
// messageId: 'unexpected',
endLine: 1,
endColumn: 20
diff --git a/tests/lib/rules/no-duplicate-class-names.js b/tests/lib/rules/no-duplicate-class-names.js
index 2384350cc..778986cf8 100644
--- a/tests/lib/rules/no-duplicate-class-names.js
+++ b/tests/lib/rules/no-duplicate-class-names.js
@@ -66,7 +66,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VLiteral',
line: 1,
column: 22,
endLine: 1,
@@ -81,7 +80,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class names 'foo', 'bar'.",
- type: 'VLiteral',
line: 1,
column: 22,
endLine: 1,
@@ -96,7 +94,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 24,
endLine: 1,
@@ -111,7 +108,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'TemplateElement',
line: 1,
column: 24,
endLine: 1,
@@ -126,7 +122,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 26,
endLine: 1,
@@ -141,7 +136,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 26,
endLine: 1,
@@ -149,7 +143,6 @@ tester.run('no-duplicate-class-names', rule, {
},
{
message: "Duplicate class name 'bar'.",
- type: 'Literal',
line: 1,
column: 47,
endLine: 1,
@@ -164,7 +157,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 25,
endLine: 1,
@@ -179,7 +171,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 25,
endLine: 1,
@@ -187,7 +178,6 @@ tester.run('no-duplicate-class-names', rule, {
},
{
message: "Duplicate class name 'bar'.",
- type: 'Literal',
line: 1,
column: 36,
endLine: 1,
@@ -202,7 +192,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 25,
endLine: 1,
@@ -210,7 +199,6 @@ tester.run('no-duplicate-class-names', rule, {
},
{
message: "Duplicate class name 'bar'.",
- type: 'Literal',
line: 1,
column: 38,
endLine: 1,
@@ -225,7 +213,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 35,
endLine: 1,
@@ -240,7 +227,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 24,
endLine: 1,
@@ -255,7 +241,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VLiteral',
line: 1,
column: 22,
endLine: 1,
@@ -270,7 +255,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VLiteral',
line: 1,
column: 22,
endLine: 1,
@@ -285,7 +269,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VLiteral',
line: 1,
column: 22,
endLine: 1,
@@ -300,7 +283,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VStartTag',
line: 1,
column: 11,
endLine: 1,
@@ -315,7 +297,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VStartTag',
line: 1,
column: 11,
endLine: 1,
@@ -330,7 +311,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VStartTag',
line: 1,
column: 11,
endLine: 1,
@@ -345,7 +325,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class names 'foo', 'bar'.",
- type: 'VStartTag',
line: 1,
column: 11,
endLine: 1,
@@ -360,7 +339,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VStartTag',
line: 1,
column: 11,
endLine: 1,
@@ -375,7 +353,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VStartTag',
line: 1,
column: 11,
endLine: 1,
@@ -390,7 +367,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VStartTag',
line: 1,
column: 11,
endLine: 1,
@@ -405,7 +381,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VStartTag',
line: 1,
column: 11,
endLine: 1,
@@ -420,7 +395,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'VStartTag',
line: 1,
column: 11,
endLine: 1,
@@ -435,7 +409,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'ArrayExpression',
line: 1,
column: 24,
endLine: 1,
@@ -450,7 +423,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'BinaryExpression',
line: 1,
column: 24,
endLine: 1,
@@ -465,7 +437,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'ArrayExpression',
line: 1,
column: 24,
endLine: 1,
@@ -480,7 +451,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 36,
endLine: 1,
@@ -495,7 +465,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 36,
endLine: 1,
@@ -510,7 +479,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 36,
endLine: 1,
@@ -525,7 +493,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 55,
endLine: 1,
@@ -540,7 +507,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'bar'.",
- type: 'Literal',
line: 1,
column: 44,
endLine: 1,
@@ -555,7 +521,6 @@ tester.run('no-duplicate-class-names', rule, {
errors: [
{
message: "Duplicate class name 'foo'.",
- type: 'Literal',
line: 1,
column: 54,
endLine: 1,
diff --git a/tests/lib/rules/no-multi-spaces.js b/tests/lib/rules/no-multi-spaces.js
index 784718270..909a5063a 100644
--- a/tests/lib/rules/no-multi-spaces.js
+++ b/tests/lib/rules/no-multi-spaces.js
@@ -82,7 +82,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before '/>'.",
- type: 'HTMLSelfClosingTagClose',
line: 1,
column: 15,
endLine: 1,
@@ -96,7 +95,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before 'class'.",
- type: 'HTMLIdentifier',
line: 1,
column: 15,
endLine: 1,
@@ -104,7 +102,6 @@ ruleTester.run('no-multi-spaces', rule, {
},
{
message: "Multiple spaces found before '/>'.",
- type: 'HTMLSelfClosingTagClose',
line: 1,
column: 29,
endLine: 1,
@@ -118,7 +115,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before 'class'.",
- type: 'HTMLIdentifier',
line: 1,
column: 15,
endLine: 1,
@@ -126,7 +122,6 @@ ruleTester.run('no-multi-spaces', rule, {
},
{
message: "Multiple spaces found before '/>'.",
- type: 'HTMLSelfClosingTagClose',
line: 1,
column: 28,
endLine: 1,
@@ -140,7 +135,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before ':'.",
- type: 'Punctuator',
line: 1,
column: 15,
endLine: 1,
@@ -148,7 +142,6 @@ ruleTester.run('no-multi-spaces', rule, {
},
{
message: "Multiple spaces found before '/>'.",
- type: 'HTMLSelfClosingTagClose',
line: 1,
column: 30,
endLine: 1,
@@ -162,7 +155,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before '/>'.",
- type: 'HTMLSelfClosingTagClose',
line: 1,
column: 35,
endLine: 1,
@@ -176,7 +168,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before '/>'.",
- type: 'HTMLSelfClosingTagClose',
line: 1,
column: 34,
endLine: 1,
@@ -190,7 +181,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before '/>'.",
- type: 'HTMLSelfClosingTagClose',
line: 1,
column: 36,
endLine: 1,
@@ -204,7 +194,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before '/>'.",
- type: 'HTMLSelfClosingTagClose',
line: 2,
column: 21,
endLine: 2,
@@ -218,7 +207,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before 'test'.",
- type: 'Identifier',
line: 1,
column: 18,
endLine: 1,
@@ -226,7 +214,6 @@ ruleTester.run('no-multi-spaces', rule, {
},
{
message: "Multiple spaces found before '}}'.",
- type: 'VExpressionEnd',
line: 1,
column: 24,
endLine: 1,
@@ -240,7 +227,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before '>'.",
- type: 'HTMLTagClose',
line: 1,
column: 15,
endLine: 1,
@@ -254,7 +240,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before 'i'.",
- type: 'Identifier',
line: 1,
column: 23,
endLine: 1,
@@ -262,7 +247,6 @@ ruleTester.run('no-multi-spaces', rule, {
},
{
message: "Multiple spaces found before 'in'.",
- type: 'Keyword',
line: 1,
column: 30,
endLine: 1,
@@ -270,7 +254,6 @@ ruleTester.run('no-multi-spaces', rule, {
},
{
message: "Multiple spaces found before 'b'.",
- type: 'Identifier',
line: 1,
column: 36,
endLine: 1,
@@ -278,7 +261,6 @@ ruleTester.run('no-multi-spaces', rule, {
},
{
message: "Multiple spaces found before '\"'.",
- type: 'Punctuator',
line: 1,
column: 41,
endLine: 1,
@@ -310,7 +292,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before ':'.",
- type: 'Punctuator',
line: 5,
column: 26,
endLine: 5,
@@ -342,7 +323,6 @@ ruleTester.run('no-multi-spaces', rule, {
errors: [
{
message: "Multiple spaces found before 'isExpanded'.",
- type: 'Identifier',
line: 5,
column: 27,
endLine: 5,
diff --git a/tests/lib/rules/no-multiple-objects-in-class.js b/tests/lib/rules/no-multiple-objects-in-class.js
index ab019f020..46805fb14 100644
--- a/tests/lib/rules/no-multiple-objects-in-class.js
+++ b/tests/lib/rules/no-multiple-objects-in-class.js
@@ -26,7 +26,6 @@ ruleTester.run('no-multiple-objects-in-class', rule, {
errors: [
{
message: 'Unexpected multiple objects. Merge objects.',
- type: 'VAttribute',
line: 1,
column: 16,
endLine: 1,
@@ -39,7 +38,6 @@ ruleTester.run('no-multiple-objects-in-class', rule, {
errors: [
{
message: 'Unexpected multiple objects. Merge objects.',
- type: 'VAttribute',
line: 1,
column: 16,
endLine: 1,
@@ -54,7 +52,6 @@ ruleTester.run('no-multiple-objects-in-class', rule, {
errors: [
{
message: 'Unexpected multiple objects. Merge objects.',
- type: 'VAttribute',
line: 1,
column: 16,
endLine: 1,
diff --git a/tests/lib/rules/no-reserved-component-names.js b/tests/lib/rules/no-reserved-component-names.js
index 809d35103..09d9a6f64 100644
--- a/tests/lib/rules/no-reserved-component-names.js
+++ b/tests/lib/rules/no-reserved-component-names.js
@@ -608,8 +608,10 @@ ruleTester.run('no-reserved-component-names', rule, {
? 'reservedInHtml'
: 'reserved',
data: { name },
- type: 'Literal',
- line: 3
+ line: 3,
+ column: 19,
+ endLine: 3,
+ endColumn: 19 + name.length + 2
}
]
})),
@@ -623,8 +625,10 @@ ruleTester.run('no-reserved-component-names', rule, {
? 'reservedInHtml'
: 'reserved',
data: { name },
- type: 'Literal',
- line: 1
+ line: 1,
+ column: 15,
+ endLine: 1,
+ endColumn: 15 + name.length + 2
}
]
})),
@@ -638,8 +642,10 @@ ruleTester.run('no-reserved-component-names', rule, {
? 'reservedInHtml'
: 'reserved',
data: { name },
- type: 'Literal',
- line: 1
+ line: 1,
+ column: 15,
+ endLine: 1,
+ endColumn: 15 + name.length + 2
}
]
})),
@@ -653,8 +659,10 @@ ruleTester.run('no-reserved-component-names', rule, {
? 'reservedInHtml'
: 'reserved',
data: { name },
- type: 'TemplateLiteral',
- line: 1
+ line: 1,
+ column: 15,
+ endLine: 1,
+ endColumn: 15 + name.length + 2
}
]
})),
@@ -668,8 +676,10 @@ ruleTester.run('no-reserved-component-names', rule, {
? 'reservedInHtml'
: 'reserved',
data: { name },
- type: 'TemplateLiteral',
- line: 1
+ line: 1,
+ column: 15,
+ endLine: 1,
+ endColumn: 15 + name.length + 2
}
]
})),
@@ -687,8 +697,10 @@ ruleTester.run('no-reserved-component-names', rule, {
? 'reservedInHtml'
: 'reserved',
data: { name },
- type: 'Property',
- line: 3
+ line: 3,
+ column: 13,
+ endLine: 3,
+ endColumn: 13 + name.length + 6
}
]
})),
@@ -705,7 +717,10 @@ ruleTester.run('no-reserved-component-names', rule, {
? 'reservedInHtml'
: 'reserved',
data: { name },
- line: 1
+ line: 1,
+ column: 37,
+ endLine: 1,
+ endColumn: 37 + name.length + 2
}
]
})),
@@ -723,7 +738,10 @@ ruleTester.run('no-reserved-component-names', rule, {
? 'reservedInHtml'
: 'reserved',
data: { name },
- line: 1
+ line: 1,
+ column: 37,
+ endLine: 1,
+ endColumn: 37 + name.length + 2
}
]
})),
@@ -740,8 +758,10 @@ ruleTester.run('no-reserved-component-names', rule, {
{
messageId: 'reservedInVue',
data: { name },
- type: 'Literal',
- line: 3
+ line: 3,
+ column: 19,
+ endLine: 3,
+ endColumn: 19 + name.length + 2
}
]
})),
@@ -758,8 +778,10 @@ ruleTester.run('no-reserved-component-names', rule, {
{
messageId: 'reservedInVue',
data: { name },
- type: 'Literal',
- line: 3
+ line: 3,
+ column: 19,
+ endLine: 3,
+ endColumn: 19 + name.length + 2
}
]
})),
@@ -776,8 +798,10 @@ ruleTester.run('no-reserved-component-names', rule, {
{
messageId: 'reservedInVue3',
data: { name },
- type: 'Literal',
- line: 3
+ line: 3,
+ column: 19,
+ endLine: 3,
+ endColumn: 19 + name.length + 2
}
]
}))
diff --git a/tests/lib/rules/no-restricted-class.js b/tests/lib/rules/no-restricted-class.js
index 97cc0b4b1..ae94d4af1 100644
--- a/tests/lib/rules/no-restricted-class.js
+++ b/tests/lib/rules/no-restricted-class.js
@@ -49,7 +49,10 @@ ruleTester.run('no-restricted-class', rule, {
errors: [
{
message: "'forbidden' class is not allowed.",
- type: 'VAttribute'
+ line: 1,
+ column: 22,
+ endLine: 1,
+ endColumn: 41
}
]
},
@@ -59,7 +62,10 @@ ruleTester.run('no-restricted-class', rule, {
errors: [
{
message: "'forbidden' class is not allowed.",
- type: 'Literal'
+ line: 1,
+ column: 24,
+ endLine: 1,
+ endColumn: 35
}
]
},
@@ -69,7 +75,10 @@ ruleTester.run('no-restricted-class', rule, {
errors: [
{
message: "'forbidden' class is not allowed.",
- type: 'Literal'
+ line: 1,
+ column: 25,
+ endLine: 1,
+ endColumn: 36
}
]
},
@@ -79,7 +88,10 @@ ruleTester.run('no-restricted-class', rule, {
errors: [
{
message: "'forbidden' class is not allowed.",
- type: 'Identifier'
+ line: 1,
+ column: 25,
+ endLine: 1,
+ endColumn: 34
}
]
},
@@ -89,7 +101,10 @@ ruleTester.run('no-restricted-class', rule, {
errors: [
{
message: "'forbidden' class is not allowed.",
- type: 'TemplateElement'
+ line: 1,
+ column: 24,
+ endLine: 1,
+ endColumn: 37
}
]
},
@@ -99,7 +114,10 @@ ruleTester.run('no-restricted-class', rule, {
errors: [
{
message: "'forbidden' class is not allowed.",
- type: 'Literal'
+ line: 1,
+ column: 24,
+ endLine: 1,
+ endColumn: 35
}
]
},
@@ -109,7 +127,10 @@ ruleTester.run('no-restricted-class', rule, {
errors: [
{
message: "'forbidden' class is not allowed.",
- type: 'Literal'
+ line: 1,
+ column: 25,
+ endLine: 1,
+ endColumn: 36
}
]
},
@@ -119,7 +140,10 @@ ruleTester.run('no-restricted-class', rule, {
errors: [
{
message: "'forbidden' class is not allowed.",
- type: 'Literal'
+ line: 1,
+ column: 25,
+ endLine: 1,
+ endColumn: 44
}
]
},
@@ -129,7 +153,10 @@ ruleTester.run('no-restricted-class', rule, {
errors: [
{
message: "'forbidden' class is not allowed.",
- type: 'VAttribute'
+ line: 1,
+ column: 22,
+ endLine: 1,
+ endColumn: 41
}
]
}
diff --git a/tests/lib/rules/no-template-shadow.js b/tests/lib/rules/no-template-shadow.js
index 3cc5218d1..6cbd94c58 100644
--- a/tests/lib/rules/no-template-shadow.js
+++ b/tests/lib/rules/no-template-shadow.js
@@ -180,7 +180,10 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'i' is already declared in the upper scope.",
- type: 'Identifier'
+ line: 1,
+ column: 43,
+ endLine: 1,
+ endColumn: 44
}
]
},
@@ -199,8 +202,10 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'i' is already declared in the upper scope.",
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 21,
+ endLine: 2,
+ endColumn: 22
}
]
},
@@ -220,13 +225,17 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'i' is already declared in the upper scope.",
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 21,
+ endLine: 2,
+ endColumn: 22
},
{
message: "Variable 'i' is already declared in the upper scope.",
- type: 'Identifier',
- line: 3
+ line: 3,
+ column: 21,
+ endLine: 3,
+ endColumn: 22
}
]
},
@@ -247,13 +256,17 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'i' is already declared in the upper scope.",
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 21,
+ endLine: 2,
+ endColumn: 22
},
{
message: "Variable 'i' is already declared in the upper scope.",
- type: 'Identifier',
- line: 3
+ line: 3,
+ column: 23,
+ endLine: 3,
+ endColumn: 24
}
]
},
@@ -274,8 +287,10 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'i' is already declared in the upper scope.",
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 21,
+ endLine: 2,
+ endColumn: 22
}
]
},
@@ -298,13 +313,17 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'i' is already declared in the upper scope.",
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 21,
+ endLine: 2,
+ endColumn: 22
},
{
message: "Variable 'f' is already declared in the upper scope.",
- type: 'Identifier',
- line: 3
+ line: 3,
+ column: 21,
+ endLine: 3,
+ endColumn: 22
}
]
},
@@ -337,13 +356,17 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'e' is already declared in the upper scope.",
- type: 'Identifier',
- line: 6
+ line: 6,
+ column: 21,
+ endLine: 6,
+ endColumn: 22
},
{
message: "Variable 'f' is already declared in the upper scope.",
- type: 'Identifier',
- line: 7
+ line: 7,
+ column: 21,
+ endLine: 7,
+ endColumn: 22
}
]
},
@@ -376,13 +399,17 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'e' is already declared in the upper scope.",
- type: 'Identifier',
- line: 6
+ line: 6,
+ column: 21,
+ endLine: 6,
+ endColumn: 22
},
{
message: "Variable 'f' is already declared in the upper scope.",
- type: 'Identifier',
- line: 7
+ line: 7,
+ column: 21,
+ endLine: 7,
+ endColumn: 22
}
]
},
@@ -413,13 +440,17 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'e' is already declared in the upper scope.",
- type: 'Identifier',
- line: 6
+ line: 6,
+ column: 21,
+ endLine: 6,
+ endColumn: 22
},
{
message: "Variable 'f' is already declared in the upper scope.",
- type: 'Identifier',
- line: 7
+ line: 7,
+ column: 21,
+ endLine: 7,
+ endColumn: 22
}
]
},
@@ -445,7 +476,10 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'j' is already declared in the upper scope.",
- line: 4
+ line: 4,
+ column: 23,
+ endLine: 4,
+ endColumn: 24
}
]
},
@@ -465,7 +499,10 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'j' is already declared in the upper scope.",
- line: 4
+ line: 4,
+ column: 23,
+ endLine: 4,
+ endColumn: 24
}
]
},
@@ -485,7 +522,10 @@ ruleTester.run('no-template-shadow', rule, {
errors: [
{
message: "Variable 'j' is already declared in the upper scope.",
- line: 4
+ line: 4,
+ column: 23,
+ endLine: 4,
+ endColumn: 24
}
]
}
diff --git a/tests/lib/rules/prop-name-casing.js b/tests/lib/rules/prop-name-casing.js
index b50ff1b02..5a00abc76 100644
--- a/tests/lib/rules/prop-name-casing.js
+++ b/tests/lib/rules/prop-name-casing.js
@@ -406,8 +406,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting_text" is not in camelCase.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 34
}
]
},
@@ -425,8 +427,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting_text" is not in camelCase.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 34
}
]
},
@@ -442,8 +446,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting_text" is not in camelCase.',
- type: 'Literal',
- line: 3
+ line: 3,
+ column: 19,
+ endLine: 3,
+ endColumn: 34
}
]
},
@@ -461,8 +467,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greetingText" is not in snake_case.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 33
}
]
},
@@ -480,8 +488,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting-text" is not in camelCase.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 36
}
]
},
@@ -499,8 +509,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting-text" is not in snake_case.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 36
}
]
},
@@ -517,8 +529,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting_text" is not in camelCase.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 36
}
]
},
@@ -536,8 +550,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting-text" is not in camelCase.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 38
}
]
},
@@ -555,8 +571,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting_text" is not in camelCase.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 26
}
]
},
@@ -573,8 +591,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "abc-123-def" is not in camelCase.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 34
}
]
},
@@ -592,8 +612,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting-text" is not in camelCase.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 40
}
]
},
@@ -664,7 +686,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting_text" is not in camelCase.',
- line: 4
+ line: 4,
+ column: 9,
+ endLine: 4,
+ endColumn: 30
}
]
},
@@ -682,7 +707,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting_text" is not in camelCase.',
- line: 3
+ line: 3,
+ column: 20,
+ endLine: 3,
+ endColumn: 35
}
]
},
@@ -712,7 +740,10 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "greeting_text" is not in camelCase.',
- line: 4
+ line: 4,
+ column: 15,
+ endLine: 4,
+ endColumn: 36
}
]
}
@@ -733,13 +764,17 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "notIgnored_prop" is not in camelCase.',
- type: 'Property',
- line: 4
+ line: 4,
+ column: 13,
+ endLine: 4,
+ endColumn: 36
},
{
message: 'Prop "other-pattern" is not in camelCase.',
- type: 'Property',
- line: 5
+ line: 5,
+ column: 13,
+ endLine: 5,
+ endColumn: 36
}
]
},
@@ -755,13 +790,17 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "notIgnored_prop" is not in camelCase.',
- type: 'Literal',
- line: 3
+ line: 3,
+ column: 19,
+ endLine: 3,
+ endColumn: 36
},
{
message: 'Prop "pattern_invalid" is not in camelCase.',
- type: 'Literal',
- line: 3
+ line: 3,
+ column: 38,
+ endLine: 3,
+ endColumn: 55
}
]
},
@@ -776,15 +815,24 @@ ruleTester.run('prop-name-casing', rule, {
errors: [
{
message: 'Prop "snake_case" is not in camelCase.',
- line: 5
+ line: 5,
+ column: 19,
+ endLine: 5,
+ endColumn: 24
},
{
message: 'Prop "kebab-case" is not in camelCase.',
- line: 5
+ line: 5,
+ column: 19,
+ endLine: 5,
+ endColumn: 24
},
{
message: 'Prop "PascalCase" is not in camelCase.',
- line: 5
+ line: 5,
+ column: 19,
+ endLine: 5,
+ endColumn: 24
}
],
...getTypeScriptFixtureTestOptions()
diff --git a/tests/lib/rules/require-direct-export.js b/tests/lib/rules/require-direct-export.js
index cec06c7a0..0a5816e94 100644
--- a/tests/lib/rules/require-direct-export.js
+++ b/tests/lib/rules/require-direct-export.js
@@ -94,8 +94,10 @@ ruleTester.run('require-direct-export', rule, {
errors: [
{
message: 'Expected the component literal to be directly exported.',
- type: 'ExportDefaultDeclaration',
- line: 3
+ line: 3,
+ column: 7,
+ endLine: 3,
+ endColumn: 23
}
]
},
@@ -109,8 +111,10 @@ ruleTester.run('require-direct-export', rule, {
errors: [
{
message: 'Expected the component literal to be directly exported.',
- type: 'ExportDefaultDeclaration',
- line: 5
+ line: 5,
+ column: 7,
+ endLine: 5,
+ endColumn: 23
}
]
},
@@ -120,8 +124,10 @@ ruleTester.run('require-direct-export', rule, {
errors: [
{
message: 'Expected the component literal to be directly exported.',
- type: 'ExportDefaultDeclaration',
- line: 1
+ line: 1,
+ column: 1,
+ endLine: 1,
+ endColumn: 38
}
]
},
@@ -131,8 +137,10 @@ ruleTester.run('require-direct-export', rule, {
errors: [
{
message: 'Expected the component literal to be directly exported.',
- type: 'ExportDefaultDeclaration',
- line: 1
+ line: 1,
+ column: 1,
+ endLine: 1,
+ endColumn: 30
}
]
},
@@ -142,8 +150,10 @@ ruleTester.run('require-direct-export', rule, {
errors: [
{
message: 'Expected the component literal to be directly exported.',
- type: 'ExportDefaultDeclaration',
- line: 1
+ line: 1,
+ column: 1,
+ endLine: 1,
+ endColumn: 24
}
]
},
@@ -157,8 +167,10 @@ ruleTester.run('require-direct-export', rule, {
errors: [
{
message: 'Expected the component literal to be directly exported.',
- type: 'ExportDefaultDeclaration',
- line: 1
+ line: 1,
+ column: 1,
+ endLine: 5,
+ endColumn: 8
}
]
},
@@ -170,8 +182,10 @@ ruleTester.run('require-direct-export', rule, {
errors: [
{
message: 'Expected the component literal to be directly exported.',
- type: 'ExportDefaultDeclaration',
- line: 1
+ line: 1,
+ column: 1,
+ endLine: 3,
+ endColumn: 8
}
]
},
@@ -186,8 +200,10 @@ ruleTester.run('require-direct-export', rule, {
errors: [
{
message: 'Expected the component literal to be directly exported.',
- type: 'ExportDefaultDeclaration',
- line: 5
+ line: 5,
+ column: 7,
+ endLine: 5,
+ endColumn: 23
}
]
},
diff --git a/tests/lib/rules/require-name-property.js b/tests/lib/rules/require-name-property.js
index c61c46759..517e8df58 100644
--- a/tests/lib/rules/require-name-property.js
+++ b/tests/lib/rules/require-name-property.js
@@ -80,7 +80,10 @@ ruleTester.run('require-name-property', rule, {
errors: [
{
message: 'Required name property is not set.',
- type: 'ObjectExpression',
+ line: 2,
+ column: 24,
+ endLine: 3,
+ endColumn: 10,
suggestions: [
{
desc: 'Add name property to component.',
@@ -104,7 +107,10 @@ ruleTester.run('require-name-property', rule, {
errors: [
{
message: 'Required name property is not set.',
- type: 'ObjectExpression',
+ line: 2,
+ column: 40,
+ endLine: 3,
+ endColumn: 10,
suggestions: [
{
desc: 'Add name property to component.',
@@ -127,7 +133,10 @@ ruleTester.run('require-name-property', rule, {
errors: [
{
message: 'Required name property is not set.',
- type: 'ObjectExpression',
+ line: 2,
+ column: 40,
+ endLine: 2,
+ endColumn: 43,
suggestions: [
{
desc: 'Add name property to component.',
@@ -150,7 +159,10 @@ ruleTester.run('require-name-property', rule, {
errors: [
{
message: 'Required name property is not set.',
- type: 'ObjectExpression',
+ line: 2,
+ column: 24,
+ endLine: 2,
+ endColumn: 27,
suggestions: [
{
desc: 'Add name property to component.',
@@ -175,7 +187,10 @@ ruleTester.run('require-name-property', rule, {
errors: [
{
message: 'Required name property is not set.',
- type: 'ObjectExpression',
+ line: 2,
+ column: 24,
+ endLine: 4,
+ endColumn: 10,
suggestions: [
{
desc: 'Add name property to component.',
@@ -201,7 +216,10 @@ ruleTester.run('require-name-property', rule, {
errors: [
{
message: 'Required name property is not set.',
- type: 'ObjectExpression',
+ line: 2,
+ column: 40,
+ endLine: 4,
+ endColumn: 10,
suggestions: [
{
desc: 'Add name property to component.',
@@ -230,7 +248,10 @@ ruleTester.run('require-name-property', rule, {
errors: [
{
message: 'Required name property is not set.',
- type: 'ObjectExpression',
+ line: 2,
+ column: 24,
+ endLine: 6,
+ endColumn: 10,
suggestions: [
{
desc: 'Add name property to component.',
@@ -258,7 +279,10 @@ ruleTester.run('require-name-property', rule, {
errors: [
{
message: 'Required name property is not set.',
- type: 'ObjectExpression',
+ line: 2,
+ column: 24,
+ endLine: 4,
+ endColumn: 10,
suggestions: [
{
desc: 'Add name property to component.',
diff --git a/tests/lib/rules/require-render-return.js b/tests/lib/rules/require-render-return.js
index d2aad3c01..0fa628302 100644
--- a/tests/lib/rules/require-render-return.js
+++ b/tests/lib/rules/require-render-return.js
@@ -140,8 +140,10 @@ ruleTester.run('require-render-return', rule, {
errors: [
{
message: 'Expected to return a value in render function.',
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 9,
+ endLine: 2,
+ endColumn: 15
}
]
},
@@ -158,8 +160,10 @@ ruleTester.run('require-render-return', rule, {
errors: [
{
message: 'Expected to return a value in render function.',
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 9,
+ endLine: 2,
+ endColumn: 15
}
]
},
@@ -175,8 +179,10 @@ ruleTester.run('require-render-return', rule, {
errors: [
{
message: 'Expected to return a value in render function.',
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 9,
+ endLine: 2,
+ endColumn: 15
}
]
},
@@ -192,8 +198,10 @@ ruleTester.run('require-render-return', rule, {
errors: [
{
message: 'Expected to return a value in render function.',
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 9,
+ endLine: 2,
+ endColumn: 15
}
]
},
@@ -209,8 +217,10 @@ ruleTester.run('require-render-return', rule, {
errors: [
{
message: 'Expected to return a value in render function.',
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 9,
+ endLine: 2,
+ endColumn: 15
}
]
},
@@ -228,8 +238,10 @@ ruleTester.run('require-render-return', rule, {
errors: [
{
message: 'Expected to return a value in render function.',
- type: 'Identifier',
- line: 2
+ line: 2,
+ column: 9,
+ endLine: 2,
+ endColumn: 15
}
]
}
diff --git a/tests/lib/rules/singleline-html-element-content-newline.js b/tests/lib/rules/singleline-html-element-content-newline.js
index 52c01392b..83366266b 100644
--- a/tests/lib/rules/singleline-html-element-content-newline.js
+++ b/tests/lib/rules/singleline-html-element-content-newline.js
@@ -251,7 +251,6 @@ content
'Expected 1 line break after opening tag (``), but no line breaks found.',
line: 3,
column: 30,
- type: 'HTMLTagClose',
endLine: 3,
endColumn: 30
},
@@ -260,7 +259,6 @@ content
'Expected 1 line break before closing tag (`
`), but no line breaks found.',
line: 3,
column: 37,
- type: 'HTMLEndTagOpen',
endLine: 3,
endColumn: 37
}
diff --git a/tests/lib/rules/static-class-names-order.js b/tests/lib/rules/static-class-names-order.js
index 0f293f5e9..748cd6603 100644
--- a/tests/lib/rules/static-class-names-order.js
+++ b/tests/lib/rules/static-class-names-order.js
@@ -42,7 +42,10 @@ tester.run('static-class-names-order', rule, {
errors: [
{
message: 'Classes should be ordered alphabetically.',
- type: 'VAttribute'
+ line: 1,
+ column: 16,
+ endLine: 1,
+ endColumn: 27
}
]
},
@@ -59,7 +62,10 @@ tester.run('static-class-names-order', rule, {
errors: [
{
message: 'Classes should be ordered alphabetically.',
- type: 'VAttribute'
+ line: 2,
+ column: 16,
+ endLine: 2,
+ endColumn: 29
}
]
}
diff --git a/tests/lib/utils/vue-component.js b/tests/lib/utils/vue-component.js
index 12fcd904f..f2cce4331 100644
--- a/tests/lib/utils/vue-component.js
+++ b/tests/lib/utils/vue-component.js
@@ -26,11 +26,13 @@ const languageOptions = {
sourceType: 'module'
}
-function makeError(line) {
+function makeError(line, column, endLine, endColumn) {
return {
message: 'Component detected.',
line,
- type: 'ObjectExpression'
+ column,
+ endLine,
+ endColumn
}
}
@@ -132,37 +134,37 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [makeError(4)]
+ errors: [makeError(4, 19, 4, 21)]
},
{
filename: `test.${ext}`,
code: `Vue.component({})`,
languageOptions,
- errors: [makeError(1)]
+ errors: [makeError(1, 15, 1, 17)]
},
{
filename: `test.${ext}`,
code: `Vue.mixin({})`,
languageOptions,
- errors: [makeError(1)]
+ errors: [makeError(1, 11, 1, 13)]
},
{
filename: `test.${ext}`,
code: `Vue.extend({})`,
languageOptions,
- errors: [makeError(1)]
+ errors: [makeError(1, 12, 1, 14)]
},
{
filename: `test.${ext}`,
code: `app.component('name', {})`,
languageOptions,
- errors: [makeError(1)]
+ errors: [makeError(1, 23, 1, 25)]
},
{
filename: `test.${ext}`,
code: `app.mixin({})`,
languageOptions,
- errors: [makeError(1)]
+ errors: [makeError(1, 11, 1, 13)]
},
{
filename: `test.${ext}`,
@@ -171,7 +173,7 @@ function invalidTests(ext) {
...languageOptions,
parser: require('@typescript-eslint/parser')
},
- errors: [makeError(1)]
+ errors: [makeError(1, 52, 1, 54)]
},
{
filename: `test.${ext}`,
@@ -180,7 +182,7 @@ function invalidTests(ext) {
...languageOptions,
parser: require('@typescript-eslint/parser')
},
- errors: [makeError(1)]
+ errors: [makeError(1, 27, 1, 29)]
},
{
filename: `test.${ext}`,
@@ -189,13 +191,13 @@ function invalidTests(ext) {
...languageOptions,
parser: require('@typescript-eslint/parser')
},
- errors: [makeError(1)]
+ errors: [makeError(1, 27, 1, 29)]
},
{
filename: `test.${ext}`,
code: `createApp({})`,
languageOptions,
- errors: [makeError(1)]
+ errors: [makeError(1, 11, 1, 13)]
},
{
filename: `test.${ext}`,
@@ -205,7 +207,7 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [makeError(3)]
+ errors: [makeError(3, 24, 3, 27)]
},
{
filename: `test.${ext}`,
@@ -215,7 +217,7 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [makeError(3)]
+ errors: [makeError(3, 24, 3, 27)]
},
{
filename: `test.${ext}`,
@@ -228,7 +230,7 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [makeError(6)]
+ errors: [makeError(6, 24, 6, 27)]
},
{
filename: `test.${ext}`,
@@ -240,7 +242,7 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [makeError(3), makeError(5)]
+ errors: [makeError(3, 24, 3, 27), makeError(5, 24, 5, 27)]
},
{
filename: `test.${ext}`,
@@ -252,7 +254,7 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [makeError(3), makeError(5)]
+ errors: [makeError(3, 28, 3, 31), makeError(5, 24, 5, 27)]
},
{
filename: `test.${ext}`,
@@ -263,7 +265,10 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [...(ext === 'js' ? [] : [makeError(2)]), makeError(4)]
+ errors: [
+ ...(ext === 'js' ? [] : [makeError(2, 24, 2, 27)]),
+ makeError(4, 26, 4, 29)
+ ]
},
{
filename: `test.${ext}`,
@@ -274,7 +279,7 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [makeError(4)]
+ errors: [makeError(4, 26, 4, 29)]
},
{
filename: `test.${ext}`,
@@ -286,7 +291,7 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [makeError(4)]
+ errors: [makeError(4, 13, 4, 16)]
},
{
filename: `test.${ext}`,
@@ -301,7 +306,10 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [...(ext === 'js' ? [] : [makeError(3)]), makeError(6)]
+ errors: [
+ ...(ext === 'js' ? [] : [makeError(3, 24, 7, 10)]),
+ makeError(6, 16, 6, 19)
+ ]
},
{
filename: `test.${ext}`,
@@ -318,19 +326,22 @@ function invalidTests(ext) {
// ${ext}
`,
languageOptions,
- errors: [...(ext === 'js' ? [] : [makeError(2)]), makeError(8)]
+ errors: [
+ ...(ext === 'js' ? [] : [makeError(2, 24, 10, 10)]),
+ makeError(8, 20, 8, 22)
+ ]
},
{
filename: `test.${ext}`,
code: `export default defineComponent({})`,
languageOptions,
- errors: [makeError(1)]
+ errors: [makeError(1, 32, 1, 34)]
},
{
filename: `test.${ext}`,
code: `export default defineNuxtComponent({})`,
languageOptions,
- errors: [makeError(1)]
+ errors: [makeError(1, 36, 1, 38)]
}
]
}
@@ -353,13 +364,13 @@ ruleTester.run('vue-component', rule, {
filename: 'test.vue',
code: `export default { }`,
languageOptions,
- errors: [makeError(1)]
+ errors: [makeError(1, 16, 1, 19)]
},
{
filename: 'test.jsx',
code: `export default { }`,
languageOptions,
- errors: [makeError(1)]
+ errors: [makeError(1, 16, 1, 19)]
},
...invalidTests('js'),
...invalidTests('jsx'),