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: update JSX mode to reflect React JSX #5451

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

InspiredGuy
Copy link
Contributor

Issue #, if available:
#5447
Description of changes:
Existing JSX mode was introduced in 2012 for a project which seems inactive now (see PR #794). This PR:

  • Updates JSX mode to use JS mode with {jsx: true} option to make it work for React JSX, which is pretty much what is associated with the word JSX nowadays. Also disables jshint for JSX mode since it does not work well with JSX.
  • Makes JSX mode default for *.jsx files by removing this extension from being associated with JS mode.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

codecov bot commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4c6cf13) 87.60% compared to head (c5d9fd3) 87.62%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5451      +/-   ##
==========================================
+ Coverage   87.60%   87.62%   +0.01%     
==========================================
  Files         584      583       -1     
  Lines       46463    46418      -45     
  Branches     7023     7015       -8     
==========================================
- Hits        40705    40674      -31     
+ Misses       5758     5744      -14     
Flag Coverage Δ
unittests 87.62% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@InspiredGuy InspiredGuy merged commit 66789a7 into ajaxorg:master Jan 8, 2024
3 checks passed
@InspiredGuy InspiredGuy deleted the jsx-mode-update branch January 8, 2024 16:09
@rubencarvalho
Copy link

Thank you for the quick fix!

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.

3 participants