File tree 2 files changed +23
-2
lines changed
2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -1298,11 +1298,11 @@ const isConstructor = (node) => {
1298
1298
} ;
1299
1299
1300
1300
const isGetter = ( node ) => {
1301
- return node && node . parent . kind === 'get' ;
1301
+ return node && node . parent ? .kind === 'get' ;
1302
1302
} ;
1303
1303
1304
1304
const isSetter = ( node ) => {
1305
- return node && node . parent . kind === 'set' ;
1305
+ return node && node . parent ? .kind === 'set' ;
1306
1306
} ;
1307
1307
1308
1308
const hasAccessorPair = ( node ) => {
Original file line number Diff line number Diff line change @@ -2472,5 +2472,26 @@ export default {
2472
2472
ecmaVersion : 8 ,
2473
2473
} ,
2474
2474
} ,
2475
+ {
2476
+ code : `
2477
+ /** Enumerates possible genders for a product's target demographic. */
2478
+ enum Gender {
2479
+ Unisex,
2480
+ Mens,
2481
+ Women
2482
+ }
2483
+
2484
+ export default Gender;
2485
+ ` ,
2486
+ ignoreReadme : true ,
2487
+ options : [
2488
+ {
2489
+ contexts : [
2490
+ ':not(:matches(VariableDeclarator))' ,
2491
+ ] ,
2492
+ } ,
2493
+ ] ,
2494
+ parser : require . resolve ( '@typescript-eslint/parser' ) ,
2495
+ } ,
2475
2496
] ,
2476
2497
} ;
You can’t perform that action at this time.
0 commit comments