Skip to content

refactor: TypeParameter parsing and no-unnecessary-type-arguments rule #1381

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

Merged
merged 2 commits into from
Dec 26, 2019
Merged

refactor: TypeParameter parsing and no-unnecessary-type-arguments rule #1381

merged 2 commits into from
Dec 26, 2019

Conversation

armano2
Copy link
Collaborator

@armano2 armano2 commented Dec 26, 2019

This PR does no change how rule will work

  • register TSTypeParameterInstantiation in ast tree node maps
  • add missing test cases for extends and implements
  • refactor no-unnecessary-type-arguments rule

- register TSTypeParameterInstantiation in ast tree node maps
- add missing test cases for extends and implements
@armano2 armano2 added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin package: typescript-estree Issues related to @typescript-eslint/typescript-estree tests anything to do with testing labels Dec 26, 2019
@armano2 armano2 self-assigned this Dec 26, 2019
@typescript-eslint
Copy link
Contributor

Thanks for the PR, @armano2!

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 Dec 26, 2019

Codecov Report

Merging #1381 into master will increase coverage by 0.02%.
The diff coverage is 89.47%.

@@            Coverage Diff             @@
##           master    #1381      +/-   ##
==========================================
+ Coverage   94.04%   94.07%   +0.02%     
==========================================
  Files         139      139              
  Lines        5979     5973       -6     
  Branches     1692     1689       -3     
==========================================
- Hits         5623     5619       -4     
+ Misses        192      191       -1     
+ Partials      164      163       -1
Impacted Files Coverage Δ
packages/typescript-estree/src/convert.ts 99.42% <85.71%> (ø) ⬆️
...-plugin/src/rules/no-unnecessary-type-arguments.ts 95.45% <91.66%> (+3.45%) ⬆️

remove dead code and add missing test cases
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for this

@bradzacher bradzacher changed the title refactor(eslint-plugin): no-unnecessary-type-arguments rule refactor: TypeParameter parsing and no-unnecessary-type-arguments rule Dec 26, 2019
@bradzacher bradzacher merged commit 6a6bde0 into typescript-eslint:master Dec 26, 2019
@armano2 armano2 deleted the no-unnecessary-type-arguments branch December 29, 2019 04:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin package: typescript-estree Issues related to @typescript-eslint/typescript-estree tests anything to do with testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants