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: Ignore non-JSX files in views folder #2249

Merged
merged 8 commits into from
Mar 25, 2024
Merged

Conversation

mshabarov
Copy link
Contributor

@mshabarov mshabarov commented Mar 21, 2024

Removes .ts and .js from extension list, making them ignored.
Shows a warning message if sees any .ts or .js files in /views.
Changes test files extensions to .tsx and .jsx and adds a couple of .js and .ts files, which shouldn't be processes by the plugin.

Fixes #2248

Copy link

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.77%. Comparing base (270e8f4) to head (2e96aaf).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2249   +/-   ##
=======================================
  Coverage   93.77%   93.77%           
=======================================
  Files          64       64           
  Lines        1638     1638           
  Branches      368      368           
=======================================
  Hits         1536     1536           
  Misses         67       67           
  Partials       35       35           
Flag Coverage Δ
unittests 93.77% <ø> (ø)

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.

@mshabarov mshabarov marked this pull request as ready for review March 22, 2024 08:16
@mshabarov mshabarov requested review from platosha and Lodin March 22, 2024 08:54
@mshabarov
Copy link
Contributor Author

Tested with the attached project in https://github.com/vaadin/copilot-internal/issues/1197 and the app works as expected now.

Copy link

sonarcloud bot commented Mar 25, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@platosha platosha merged commit 0c777d8 into main Mar 25, 2024
15 checks passed
@platosha platosha deleted the ignore-non-jsx-files branch March 25, 2024 07:57
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Hilla 24.4.0.alpha17 and is also targeting the upcoming stable 24.4.0 version.

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

Successfully merging this pull request may close these issues.

File System router generates router config for JS/TS files
4 participants