quick-lint-js icon indicating copy to clipboard operation
quick-lint-js copied to clipboard

Support import attributes aka import assertions

Open GeorgeZack opened this issue 2 years ago • 1 comments

With Import Attributes nearing implementation (https://github.com/tc39/proposal-import-attributes) I would love to see support for the proposal. I know it's technically not implemented yet, but I figured I'd put it on the radar. Please correct me if this is the incorrect format for such a change. The current implementation in Chrome, Node.js, and Deno is: import { x } from "./mod" assert { type: "json" }; However, as of March the implemenation will change to: import { x } from "./mod" with { type: "json" }; (The difference being assert to with)

Thank you for your time.

GeorgeZack avatar May 08 '23 21:05 GeorgeZack

@GeorgeZack Thanks for bringing this to my attention. I didn't know the syntax changed, so that's good to know.

strager avatar May 09 '23 21:05 strager