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

fix(fe): don't report React-specific JSX errors in non-React code #1165

Closed
wants to merge 3 commits into from

Conversation

strager
Copy link
Collaborator

@strager strager commented Jan 5, 2024

fix(fe): don't report React-specific JSX errors in non-React code

Preact uses JSX but has different rules for attributes. Disable our
React-specific rules if a React import is not detected.


Stack created with Sapling. Best reviewed with ReviewStack.

Replace three words (std::optional<Source_Code_Span>) with one word
(Char8*).
I want to eventually introduce Preact support which will interfere
with React support. Move React-specific test cases into
test-parse-jsx-react.cpp.
Preact uses JSX but has different rules for attributes. Disable our
React-specific rules if a React import is not detected.
@strager
Copy link
Collaborator Author

strager commented Jan 5, 2024

(I was testing something.)

@strager strager closed this Jan 5, 2024
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

Successfully merging this pull request may close these issues.

1 participant