jsx-eslint / eslint-plugin-react

React-specific linting rules for ESLint
MIT License
8.86k stars 2.75k forks source link

Allow react defaultVersion to be configurable #3771

Open onlywei opened 1 week ago

onlywei commented 1 week ago

I have some projects where I want to detect the react version most of the time, but sometimes I expect that to fail. In those cases, I don't want to default to "latest". I instead want to choose the default fallback version of React.

codecov[bot] commented 6 days ago

Codecov Report

Attention: Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.76%. Comparing base (cef8123) to head (79a6496). Report is 2 commits behind head on master.

Files Patch % Lines
lib/util/version.js 96.29% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3771 +/- ## ========================================== + Coverage 97.62% 97.76% +0.13% ========================================== Files 134 134 Lines 9617 9644 +27 Branches 3488 3497 +9 ========================================== + Hits 9389 9428 +39 + Misses 228 216 -12 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.