Skip to content

fix(eslint-plugin): improve detection of used vars in heritage #102

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
Jan 21, 2019
Merged

fix(eslint-plugin): improve detection of used vars in heritage #102

merged 2 commits into from
Jan 21, 2019

Conversation

armano2
Copy link
Collaborator

@armano2 armano2 commented Jan 21, 2019

This PR fixes issue with heritage clause in classes and interfaces, it also reduces possible false possitives from class heritage when used as MemberExpression

fixes: #45

@codecov
Copy link

codecov bot commented Jan 21, 2019

Codecov Report

Merging #102 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #102      +/-   ##
==========================================
+ Coverage   94.81%   94.83%   +0.02%     
==========================================
  Files          48       48              
  Lines        2470     2480      +10     
  Branches      381      381              
==========================================
+ Hits         2342     2352      +10     
  Misses         77       77              
  Partials       51       51
Impacted Files Coverage Δ
packages/eslint-plugin/lib/rules/no-unused-vars.js 100% <100%> (ø) ⬆️

@JamesHenry JamesHenry merged commit 193b434 into typescript-eslint:master Jan 21, 2019
@armano2 armano2 deleted the no-unused-vars branch January 21, 2019 15:49
armanio123 pushed a commit to armanio123/typescript-eslint that referenced this pull request Jan 24, 2019
…Fixes typescript-eslint#102) (typescript-eslint#104)

* Only check *.ts and *.tsx files (Fixes typescript-eslint#102)

* Move duplicated isTypescript() function to util.js

* Simplify regex in isTypescript()
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[no-unused-vars] More missing detections
2 participants