@@ -45,8 +45,8 @@ ruleTester.run('attribute-hyphenation', rule, {
45
45
} ,
46
46
{
47
47
filename : 'test.vue' ,
48
- code : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" custom-hypen ="foo" second-custom="bar"><a onClick="" my-prop="prop"></a></custom></template>' ,
49
- options : [ 'never' , { 'ignore' : [ 'custom-hypen ' , 'second-custom' ] } ]
48
+ code : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" custom-hyphen ="foo" second-custom="bar"><a onClick="" my-prop="prop"></a></custom></template>' ,
49
+ options : [ 'never' , { 'ignore' : [ 'custom-hyphen ' , 'second-custom' ] } ]
50
50
}
51
51
] ,
52
52
@@ -57,7 +57,7 @@ ruleTester.run('attribute-hyphenation', rule, {
57
57
output : '<template><div><custom myProp="foo"></custom></div></template>' ,
58
58
options : [ 'never' ] ,
59
59
errors : [ {
60
- message : "Attribute 'my-prop' cann 't be hyphenated." ,
60
+ message : "Attribute 'my-prop' can 't be hyphenated." ,
61
61
type : 'VIdentifier' ,
62
62
line : 1
63
63
} ]
@@ -79,7 +79,7 @@ ruleTester.run('attribute-hyphenation', rule, {
79
79
output : '<template><div><custom :myProp="prop"></custom></div></template>' ,
80
80
options : [ 'never' ] ,
81
81
errors : [ {
82
- message : "Attribute ':my-prop' cann 't be hyphenated." ,
82
+ message : "Attribute ':my-prop' can 't be hyphenated." ,
83
83
type : 'VDirectiveKey' ,
84
84
line : 1
85
85
} ]
@@ -101,7 +101,7 @@ ruleTester.run('attribute-hyphenation', rule, {
101
101
output : '<template><div><custom v-bind:myProp="prop"></custom></div></template>' ,
102
102
options : [ 'never' ] ,
103
103
errors : [ {
104
- message : "Attribute 'v-bind:my-prop' cann 't be hyphenated." ,
104
+ message : "Attribute 'v-bind:my-prop' can 't be hyphenated." ,
105
105
type : 'VDirectiveKey' ,
106
106
line : 1
107
107
} ]
@@ -130,25 +130,25 @@ ruleTester.run('attribute-hyphenation', rule, {
130
130
} ,
131
131
{
132
132
filename : 'test.vue' ,
133
- code : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" custom-hypen ="foo" third-custom="bar"><a onClick="" my-prop="prop"></a></custom></template>' ,
134
- output : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" custom-hypen ="foo" thirdCustom="bar"><a onClick="" my-prop="prop"></a></custom></template>' ,
135
- options : [ 'never' , { 'ignore' : [ 'custom-hypen ' , 'second-custom' ] } ] ,
133
+ code : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" custom-hyphen ="foo" third-custom="bar"><a onClick="" my-prop="prop"></a></custom></template>' ,
134
+ output : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" custom-hyphen ="foo" thirdCustom="bar"><a onClick="" my-prop="prop"></a></custom></template>' ,
135
+ options : [ 'never' , { 'ignore' : [ 'custom-hyphen ' , 'second-custom' ] } ] ,
136
136
errors : [ {
137
- message : "Attribute 'third-custom' cann 't be hyphenated." ,
137
+ message : "Attribute 'third-custom' can 't be hyphenated." ,
138
138
type : 'VDirectiveKey' ,
139
139
line : 1
140
140
} ]
141
141
} ,
142
142
{
143
- // This is the same code as the `'ignore': ['custom-hypen ']`
143
+ // This is the same code as the `'ignore': ['custom-hyphen ']`
144
144
// valid test; to verify that setting ignore actually makes the
145
145
// difference.
146
146
filename : 'test.vue' ,
147
- code : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" custom-hypen ="foo"><a onClick="" my-prop="prop"></a></custom></template>' ,
148
- output : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" customHypen ="foo"><a onClick="" my-prop="prop"></a></custom></template>' ,
147
+ code : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" custom-hyphen ="foo"><a onClick="" my-prop="prop"></a></custom></template>' ,
148
+ output : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" customHyphen ="foo"><a onClick="" my-prop="prop"></a></custom></template>' ,
149
149
options : [ 'never' ] ,
150
150
errors : [ {
151
- message : "Attribute 'custom-hypen' cann 't be hyphenated." ,
151
+ message : "Attribute 'custom-hyphen' can 't be hyphenated." ,
152
152
type : 'VIdentifier' ,
153
153
line : 1
154
154
} ]
0 commit comments