-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Fix] export
: false positive for typescript namespace merging
#2375
[Fix] export
: false positive for typescript namespace merging
#2375
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2375 +/- ##
==========================================
+ Coverage 95.00% 95.03% +0.02%
==========================================
Files 66 66
Lines 2703 2718 +15
Branches 901 913 +12
==========================================
+ Hits 2568 2583 +15
Misses 135 135
Continue to review full report at Codecov.
|
8aeb950
to
e9518c4
Compare
Looks like you may need to skip the tests in older eslint versions, or on the older TS parser. |
Sure 😄 I'm not sure how yet. Do you have an example of how to do that? BTW: I'm setting it as a draft. After a walk/break 😅 , I realized that this fix won't work properly for: export class Foo { }
export class Foo { }
export namespace Foo { } I'll have a second look at it tomorrow, it's already quite late in my timezone. |
Here's an example: eslint-plugin-import/tests/src/rules/no-commonjs.js Lines 71 to 96 in 6c957e7
|
43394ae
to
48d3070
Compare
48d3070
to
443bee0
Compare
d7acbba
to
3603428
Compare
Fixes #1964
Fixes false positives like this: