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

feat(eslint-plugin): [no-shadow] add option ignoreFunctionTypeParameterNameValueShadow #2470

Merged
merged 1 commit into from Sep 2, 2020

Conversation

bradzacher
Copy link
Member

Fixes #2447

Technically this is backwards incompatible, because I'm adding the option true by default, but I believe that the case it protects against is so rare that it's a substantially better experience this way, and it's what people expect

…terNameValueShadow`

Fixes #2447

Technically this is backwards incompatible, because I'm adding the option true by default, but I believe that the case it protects against is so rare that it's a substantially better experience this way, and it's what people expect
@bradzacher bradzacher added the enhancement: plugin rule option New rule option for an existing eslint-plugin rule label Sep 2, 2020
@typescript-eslint
Copy link
Contributor

Thanks for the PR, @bradzacher!

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 https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

@codecov
Copy link

codecov bot commented Sep 2, 2020

Codecov Report

Merging #2470 into master will decrease coverage by 0.03%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           master    #2470      +/-   ##
==========================================
- Coverage   92.83%   92.80%   -0.04%     
==========================================
  Files         289      289              
  Lines        9283     9294      +11     
  Branches     2594     2599       +5     
==========================================
+ Hits         8618     8625       +7     
- Misses        320      322       +2     
- Partials      345      347       +2     
Flag Coverage Δ
#unittest 92.80% <71.42%> (-0.04%) ⬇️

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

Impacted Files Coverage Δ
packages/eslint-plugin/src/rules/no-shadow.ts 93.67% <71.42%> (-4.86%) ⬇️

@bradzacher bradzacher merged commit bfe255f into master Sep 2, 2020
@bradzacher bradzacher deleted the 2447-function-type-arg-no-shadow branch September 2, 2020 17:14
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement: plugin rule option New rule option for an existing eslint-plugin rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[no-shadow] new false positive in 4.0.0 for function argument types
1 participant