-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat: add package scope-manager #1939
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
Conversation
|
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. |
895f1a2 to
0375ebf
Compare
Codecov Report
@@ Coverage Diff @@
## master #1939 +/- ##
==========================================
- Coverage 93.29% 93.09% -0.20%
==========================================
Files 173 282 +109
Lines 7789 9014 +1225
Branches 2284 2463 +179
==========================================
+ Hits 7267 8392 +1125
- Misses 247 301 +54
- Partials 275 321 +46
|
80487d5 to
daa415c
Compare
34a36dc to
3c94b99
Compare
883d48e to
a810f23
Compare
a810f23 to
1be2ab8
Compare
1be2ab8 to
25e1f68
Compare
25e1f68 to
1577110
Compare
1577110 to
6d9a0aa
Compare
6d9a0aa to
d66f86d
Compare
e199658 to
e1d94e7
Compare
d66f86d to
6949551
Compare
e1d94e7 to
d0235aa
Compare
ad91323 to
05b58ed
Compare
05b58ed to
203f702
Compare
Ref #1856
This is an alternate approach to #1533.
Instead of just extending bits and pieces, bring the entire codebase in, clean it up and rebuild it to have native support for TS types.
I found that trying to make the types work was a complete pain because we need a custom typed version of each class anyway.
I figure that we support our own set of JS on top of what
eslint-scopesupports, so it's probably better we maintain the entire stack so we don't do any hacky extension things.We don't want to get into a position where the base package adds handling we weren't expecting.
WIP
eslint-scope,eslint-scopetests,ClassPropertyDecoratorOptionalMemberExpressionOptionalCallExpressionTSAbstractClassPropertyTSAbstractMethodDefinitionTSAsExpressionTSDeclareFunctionTSExportAssignmentTSImportEqualsDeclarationTSInterfaceDeclarationTSMappedTypeTSModuleDeclaration(will need their own scope)TSParameterPropertyTSTypeAliasDeclarationTSTypeAssertionTSTypeParameterTSTypePredicateTSEnumDeclaration(will need their own scope)TSPropertySignatureTSCallSignatureDeclarationTSConstructorTypeTSConstructSignatureDeclarationTSEmptyBodyFunctionExpressionTSFunctionTypeTSMethodSignatureTSIndexSignatureBASED ON #2230
Must be retargeted before merging