Add support for JSON Import Assertions
bennycode opened this issue · 0 comments
bennycode commented
Node 18 supports JSON Import Assertions: https://nodejs.org/en/blog/announcements/v18-release-announce
We can convert:
'0.json';
to'0.json' assert {type: 'json'};
It will automatically fix TS2821.