xojs/xo

Unexpected token with dynamic import with type assertion

remisture opened this issue · 1 comments

Seems like xo struggle to parse this. What can I do?

const serviceAccount = await import('../serviceAccount.json', { assert: { type: 'json' } });

"Parsing error: Unexpected token , "

Not an XO issue:

Import attributes are not yet finalized so ESLint does not support them yet.