File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,18 @@ function validTests (ext) {
96
96
foo: {}
97
97
}` ,
98
98
parserOptions
99
+ } ,
100
+ {
101
+ filename : `test.${ ext } ` ,
102
+ code : `export default (Foo as FooConstructor<Foo>).extend({})` ,
103
+ parser : 'typescript-eslint-parser' ,
104
+ parserOptions
105
+ } ,
106
+ {
107
+ filename : `test.${ ext } ` ,
108
+ code : `export default Foo.extend({})` ,
109
+ parser : 'typescript-eslint-parser' ,
110
+ parserOptions
99
111
}
100
112
]
101
113
}
@@ -132,6 +144,20 @@ function invalidTests (ext) {
132
144
parserOptions,
133
145
errors : [ makeError ( 1 ) ]
134
146
} ,
147
+ {
148
+ filename : `test.${ ext } ` ,
149
+ code : `export default (Vue as VueConstructor<Vue>).extend({})` ,
150
+ parser : 'typescript-eslint-parser' ,
151
+ parserOptions,
152
+ errors : [ makeError ( 1 ) ]
153
+ } ,
154
+ {
155
+ filename : `test.${ ext } ` ,
156
+ code : `export default Vue.extend({})` ,
157
+ parser : 'typescript-eslint-parser' ,
158
+ parserOptions,
159
+ errors : [ makeError ( 1 ) ]
160
+ } ,
135
161
{
136
162
filename : `test.${ ext } ` ,
137
163
code : `
You can’t perform that action at this time.
0 commit comments