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

Allow @jsx pragma to be set in .flowconfig #7911

Closed
Hubro opened this issue Jul 9, 2019 · 1 comment
Closed

Allow @jsx pragma to be set in .flowconfig #7911

Hubro opened this issue Jul 9, 2019 · 1 comment

Comments

@Hubro
Copy link

Hubro commented Jul 9, 2019

I'm starting out a new project using flow and preact. The only way to make flow play nice with preact is to add // @jsx h to all my source files. It feels pretty silly to have to add the exact same flags to all my source files. It should be possible to set this globally in .flowconfig.

For example:

[options]
jsx.pragma=h
@goodmind
Copy link
Contributor

goodmind commented Jul 9, 2019

Duplicate of #7010

@goodmind goodmind marked this as a duplicate of #7010 Jul 9, 2019
@goodmind goodmind closed this as completed Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants