@@ -25,31 +25,34 @@ tester.run('slot-name-casing', rule, {
25
25
{
26
26
filename : 'test.vue' ,
27
27
code : `
28
- <template>
29
- <slot name="foo" />
30
- <slot name="foo-bar" />
31
- <slot :name="fooBar" />
32
- </template>` ,
28
+ <template>
29
+ <slot name="foo" />
30
+ <slot name="foo-bar" />
31
+ <slot :name="fooBar" />
32
+ </template>
33
+ ` ,
33
34
options : [ 'kebab-case' ]
34
35
} ,
35
36
{
36
37
filename : 'test.vue' ,
37
38
code : `
38
- <template>
39
- <slot name="foo" />
40
- <slot :name="fooBar" />
41
- </template>` ,
39
+ <template>
40
+ <slot name="foo" />
41
+ <slot :name="fooBar" />
42
+ </template>
43
+ ` ,
42
44
options : [ 'singleword' ]
43
45
}
44
46
] ,
45
47
invalid : [
46
48
{
47
49
filename : 'test.vue' ,
48
50
code : `
49
- <template>
50
- <slot name="foo-bar" />
51
- <slot name="foo-Bar_baz" />
52
- </template>` ,
51
+ <template>
52
+ <slot name="foo-bar" />
53
+ <slot name="foo-Bar_baz" />
54
+ </template>
55
+ ` ,
53
56
errors : [
54
57
{
55
58
messageId : 'invalidCase' ,
@@ -58,7 +61,7 @@ tester.run('slot-name-casing', rule, {
58
61
caseType : 'camelCase'
59
62
} ,
60
63
line : 3 ,
61
- column : 13
64
+ column : 17
62
65
} ,
63
66
{
64
67
messageId : 'invalidCase' ,
@@ -67,17 +70,18 @@ tester.run('slot-name-casing', rule, {
67
70
caseType : 'camelCase'
68
71
} ,
69
72
line : 4 ,
70
- column : 13
73
+ column : 17
71
74
}
72
75
]
73
76
} ,
74
77
{
75
78
filename : 'test.vue' ,
76
79
code : `
77
- <template>
78
- <slot name="fooBar" />
79
- <slot name="foo-Bar_baz" />
80
- </template>` ,
80
+ <template>
81
+ <slot name="fooBar" />
82
+ <slot name="foo-Bar_baz" />
83
+ </template>
84
+ ` ,
81
85
options : [ 'kebab-case' ] ,
82
86
errors : [
83
87
{
@@ -87,7 +91,7 @@ tester.run('slot-name-casing', rule, {
87
91
caseType : 'kebab-case'
88
92
} ,
89
93
line : 3 ,
90
- column : 13
94
+ column : 17
91
95
} ,
92
96
{
93
97
messageId : 'invalidCase' ,
@@ -96,18 +100,19 @@ tester.run('slot-name-casing', rule, {
96
100
caseType : 'kebab-case'
97
101
} ,
98
102
line : 4 ,
99
- column : 13
103
+ column : 17
100
104
}
101
105
]
102
106
} ,
103
107
{
104
108
filename : 'test.vue' ,
105
109
code : `
106
- <template>
107
- <slot name="foo-bar" />
108
- <slot name="fooBar" />
109
- <slot name="foo-Bar_baz" />
110
- </template>` ,
110
+ <template>
111
+ <slot name="foo-bar" />
112
+ <slot name="fooBar" />
113
+ <slot name="foo-Bar_baz" />
114
+ </template>
115
+ ` ,
111
116
options : [ 'singleword' ] ,
112
117
errors : [
113
118
{
@@ -117,7 +122,7 @@ tester.run('slot-name-casing', rule, {
117
122
caseType : 'singleword'
118
123
} ,
119
124
line : 3 ,
120
- column : 13
125
+ column : 17
121
126
} ,
122
127
{
123
128
messageId : 'invalidCase' ,
@@ -126,7 +131,7 @@ tester.run('slot-name-casing', rule, {
126
131
caseType : 'singleword'
127
132
} ,
128
133
line : 4 ,
129
- column : 13
134
+ column : 17
130
135
} ,
131
136
{
132
137
messageId : 'invalidCase' ,
@@ -135,7 +140,7 @@ tester.run('slot-name-casing', rule, {
135
140
caseType : 'singleword'
136
141
} ,
137
142
line : 5 ,
138
- column : 13
143
+ column : 17
139
144
}
140
145
]
141
146
}
0 commit comments