File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ const create = context => {
47
47
|| ( node . parent . type === 'Property' && ! node . parent . computed && node . parent . key === node )
48
48
|| ( node . parent . type === 'JSXAttribute' && node . parent . value === node )
49
49
|| ( node . parent . type === 'TSEnumMember' && ( node . parent . initializer === node || node . parent . id === node ) )
50
+ || ( node . parent . type === 'ImportAttribute' && ( node . parent . key === node || node . parent . value === node ) )
50
51
) {
51
52
return ;
52
53
}
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ test.snapshot({
30
30
} ,
31
31
} ,
32
32
} ,
33
+ String . raw `import {} from "foo" with {key: "value\\value"}` ,
34
+ String . raw `import {} from "foo" with {"key\\key": "value"}` ,
35
+ String . raw `export {} from "foo" with {key: "value\\value"}` ,
36
+ String . raw `export {} from "foo" with {"key\\key": "value"}` ,
33
37
] ,
34
38
invalid : [
35
39
String . raw `a = 'a\\b'` ,
You can’t perform that action at this time.
0 commit comments