'
@@ -84,18 +80,15 @@ tester.run('no-unused-vars', rule, {
errors: ["'props' is defined but never used."]
},
{
- code:
- '',
+ code: '',
errors: ["'props' is defined but never used."]
},
{
- code:
- '
{{i}}{{i}}
',
+ code: '
{{i}}{{i}}
',
errors: ["'j' is defined but never used."]
},
{
- code:
- '',
+ code: '',
errors: ["'f' is defined but never used."]
},
{
@@ -118,8 +111,7 @@ tester.run('no-unused-vars', rule, {
errors: ["'c' is defined but never used."]
},
{
- code:
- '
{{item.name}}
',
+ code: '
{{item.name}}
',
errors: ["'key' is defined but never used."]
},
{
@@ -149,8 +141,7 @@ tester.run('no-unused-vars', rule, {
options: [{ ignorePattern: '^ignore' }]
},
{
- code:
- '',
+ code: '',
errors: ["'props' is defined but never used."],
options: [{ ignorePattern: '^ignore' }]
},
@@ -164,23 +155,19 @@ tester.run('no-unused-vars', rule, {
errors: ["'a' is defined but never used."]
},
{
- code:
- '{{d}}',
+ code: '{{d}}',
errors: ["'a' is defined but never used."]
},
{
- code:
- '{{a}}',
+ code: '{{a}}',
errors: ["'i' is defined but never used."]
},
{
- code:
- '{{i}}',
+ code: '{{i}}',
errors: ["'a' is defined but never used."]
},
{
- code:
- '
{{f}}
',
+ code: '
{{f}}
',
errors: [
"'a' is defined but never used.",
"'b' is defined but never used.",
@@ -189,8 +176,7 @@ tester.run('no-unused-vars', rule, {
]
},
{
- code:
- '
{{f}}
',
+ code: '
{{f}}
',
errors: [
"'a' is defined but never used.",
"'b' is defined but never used.",
@@ -198,8 +184,7 @@ tester.run('no-unused-vars', rule, {
]
},
{
- code:
- '{{d}}',
+ code: '{{d}}',
errors: [
"'a' is defined but never used.",
"'b' is defined but never used.",
@@ -207,8 +192,7 @@ tester.run('no-unused-vars', rule, {
]
},
{
- code:
- '
{{f}}
',
+ code: '
{{f}}
',
errors: [
"'a' is defined but never used.",
"'bar' is defined but never used.",
diff --git a/tests/lib/rules/no-use-v-if-with-v-for.js b/tests/lib/rules/no-use-v-if-with-v-for.js
index d4bc932c9..4ed5e6f46 100644
--- a/tests/lib/rules/no-use-v-if-with-v-for.js
+++ b/tests/lib/rules/no-use-v-if-with-v-for.js
@@ -27,26 +27,22 @@ tester.run('no-use-v-if-with-v-for', rule, {
},
{
filename: 'test.vue',
- code:
- '
'
},
{
filename: 'test.vue',
@@ -44,21 +42,18 @@ tester.run('valid-v-else-if', rule, {
// parsing error
{
filename: 'parsing-error.vue',
- code:
- ''
+ code: ''
},
// comment value (parsing error)
{
filename: 'comment-value.vue',
- code:
- ''
+ code: ''
}
],
invalid: [
{
filename: 'test.vue',
- code:
- '',
+ code: '',
errors: [
"'v-else-if' directives require being preceded by the element which has a 'v-if' or 'v-else-if' directive."
]
@@ -79,67 +74,58 @@ tester.run('valid-v-else-if', rule, {
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"'v-else-if' directives require being preceded by the element which has a 'v-if' or 'v-else-if' directive."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"'v-else-if' directives require being preceded by the element which has a 'v-if' or 'v-else-if' directive."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"'v-else-if' directives require being preceded by the element which has a 'v-if' or 'v-else-if' directive."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"'v-else-if' and 'v-if' directives can't exist on the same element."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"'v-else-if' and 'v-else' directives can't exist on the same element."
]
},
{
filename: 'test.vue',
- code:
- '
',
errors: [
"'v-else' directives require being preceded by the element which has a 'v-if' or 'v-else-if' directive."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"'v-else' directives require being preceded by the element which has a 'v-if' or 'v-else-if' directive."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"'v-else' and 'v-if' directives can't exist on the same element. You may want 'v-else-if' directives."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"'v-else' and 'v-else-if' directives can't exist on the same element."
]
},
{
filename: 'test.vue',
- code:
- '
',
errors: ["Custom elements in iteration require 'v-bind:key' directives."]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: ["Custom elements in iteration require 'v-bind:key' directives."]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: ["Custom elements in iteration require 'v-bind:key' directives."]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: ["Custom elements in iteration require 'v-bind:key' directives."]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"Expected 'v-bind:key' directive to use the variables which are defined by the 'v-for' directive."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"Expected 'v-bind:key' directive to use the variables which are defined by the 'v-for' directive."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"Expected 'v-bind:key' directive to use the variables which are defined by the 'v-for' directive."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"Expected 'v-bind:key' directive to use the variables which are defined by the 'v-for' directive."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"Expected 'v-bind:key' directive to use the variables which are defined by the 'v-for' directive."
]
},
{
filename: 'test.vue',
- code:
- '
',
+ code: '
',
errors: [
"Expected 'v-bind:key' directive to use the variables which are defined by the 'v-for' directive."
]
diff --git a/tests/lib/rules/valid-v-if.js b/tests/lib/rules/valid-v-if.js
index d3afe5780..64232c3d2 100644
--- a/tests/lib/rules/valid-v-if.js
+++ b/tests/lib/rules/valid-v-if.js
@@ -52,8 +52,7 @@ tester.run('valid-v-if', rule, {
},
{
filename: 'test.vue',
- code:
- '