@@ -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"><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"><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
} ]
@@ -129,15 +129,15 @@ ruleTester.run('attribute-hyphenation', rule, {
129
129
} ]
130
130
} ,
131
131
{
132
- // This is the same code as the `'ignore': ['custom-hypen ']`
132
+ // This is the same code as the `'ignore': ['custom-hyphen ']`
133
133
// valid test; to verify that setting ignore actually makes the
134
134
// difference.
135
135
filename : 'test.vue' ,
136
- code : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" custom-hypen ="foo"><a onClick="" my-prop="prop"></a></custom></template>' ,
137
- output : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" customHypen ="foo"><a onClick="" my-prop="prop"></a></custom></template>' ,
136
+ code : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" custom-hyphen ="foo"><a onClick="" my-prop="prop"></a></custom></template>' ,
137
+ output : '<template><custom data-id="foo" aria-test="bar" slot-scope="{ data }" customHyphen ="foo"><a onClick="" my-prop="prop"></a></custom></template>' ,
138
138
options : [ 'never' ] ,
139
139
errors : [ {
140
- message : "Attribute 'custom-hypen' cann 't be hyphenated." ,
140
+ message : "Attribute 'custom-hyphen' can 't be hyphenated." ,
141
141
type : 'VIdentifier' ,
142
142
line : 1
143
143
} ]
0 commit comments