File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ const create = context => {
4747 || ( node . parent . type === 'Property' && ! node . parent . computed && node . parent . key === node )
4848 || ( node . parent . type === 'JSXAttribute' && node . parent . value === node )
4949 || ( 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 ) )
5051 ) {
5152 return ;
5253 }
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ test.snapshot({
3030 } ,
3131 } ,
3232 } ,
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"}` ,
3337 ] ,
3438 invalid : [
3539 String . raw `a = 'a\\b'` ,
You can’t perform that action at this time.
0 commit comments