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

Lint proper use of jsx pragma #969

Open
kitsonk opened this issue Nov 8, 2021 · 0 comments
Open

Lint proper use of jsx pragma #969

kitsonk opened this issue Nov 8, 2021 · 0 comments

Comments

@kitsonk
Copy link
Contributor

kitsonk commented Nov 8, 2021

/** @jsxImportSource https://esm.sh/preact */
/** @jsx h */
/** @jsxFragment Fragment */

The above code works fine (it uses the @jsxImportSource) as expected. It is not obvious to users what should happen here though, so we should add a deno lint to disallow this. One or the other, not both.

Originally posted by @lucacasonato in denoland/deno#12631 (comment)

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