Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quicklint Throws E0089 Error When Using Import Attribute Syntax for Bun’s Macros #1232

Open
weleo opened this issue Jan 5, 2025 · 0 comments

Comments

@weleo
Copy link

weleo commented Jan 5, 2025

When utilizing the import attribute syntax as part of Bun’s macros, Quicklint throws an E0089 error. This issue arises because Quicklint currently expects with statements to enclose expressions within parentheses, which conflicts with the syntax introduced by the Stage 3 TC39 proposal for import attributes.

Example code causing the error:

import { macro } from './macro.js' with { type: 'macro' };

Quicklint should correctly parse and recognize the import attribute syntax without raising the E0089 error. The linter should accommodate the new syntax as defined in the import attributes proposal.

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant