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(eslint-plugin): [prefer-regexp-exec] check RegExp without flags #3946

merged 1 commit into from Oct 3, 2021


Copy link

@rafaelss95 rafaelss95 commented Oct 2, 2021

Fixes #3941.

Copy link

@typescript-eslint typescript-eslint bot commented Oct 2, 2021

Thanks for the PR, @rafaelss95!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!

🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

Copy link

@codecov codecov bot commented Oct 2, 2021

Codecov Report

Merging #3946 (1fabb13) into master (02c6ff3) will increase coverage by 0.81%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #3946      +/-   ##
+ Coverage   92.70%   93.51%   +0.81%     
  Files         331      151     -180     
  Lines       11637     8143    -3494     
  Branches     3290     2582     -708     
- Hits        10788     7615    -3173     
+ Misses        371      167     -204     
+ Partials      478      361     -117     
Flag Coverage Δ
unittest 93.51% <100.00%> (+0.81%) ⬆️

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

Impacted Files Coverage Δ
...ages/eslint-plugin/src/rules/prefer-regexp-exec.ts 100.00% <100.00%> (ø)
... and 172 more

1 similar comment
@bradzacher bradzacher added the bug label Oct 3, 2021
Copy link

@bradzacher bradzacher left a comment

bitten by the non-nullish array types :(
thanks for fixing this!

@bradzacher bradzacher merged commit 0868725 into typescript-eslint:master Oct 3, 2021
11 checks passed
@rafaelss95 rafaelss95 deleted the fix/3941 branch Oct 3, 2021
Copy link
Contributor Author

@rafaelss95 rafaelss95 commented Oct 3, 2021

bitten by the non-nullish array types :( thanks for fixing this!

Yes, noUncheckedIndexedAccess would have helped us in this case 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

Successfully merging this pull request may close these issues.

2 participants