feat: consume new scope analysis package #2039
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! |
667bdf2
to
b3ccb87
a5c53df
to
e0b1d0e
5c3398f
to
f0ec7da
517de6c
to
fbe16ac
f475b2b
to
b7c5f78
Codecov Report
@@ Coverage Diff @@
## v4 #2039 +/- ##
==========================================
- Coverage 93.05% 92.97% -0.08%
==========================================
Files 285 285
Lines 9109 9014 -95
Branches 2503 2510 +7
==========================================
- Hits 8476 8381 -95
- Misses 303 304 +1
+ Partials 330 329 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Fixes #1856
parser
to usescope-manager
parser
, because they were (pretty useless and unreviewed) snapshots of the scope tree from every singleshared-fixture
.no-unused-vars
function foo<T>() {}
andclass Foo<T> {}
).no-undef
no-shadow
this
arg shadowing, and add an option for ignoring type/value shadowing.no-redeclare
no-use-before-define
BASED ON #1939
BREAKING
This is a big change that will require action from users in the form of:
parserOptions.lib
to silence some false-positives.We're going to have to do a 4.0 release v soon due to the optional chain and class property AST changes, so we can hold off on this until then