-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(eslint-plugin): [padding-line-between-statements] problems within namespaces not being reported #3869
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, @rafaelss95! 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 Report
@@ Coverage Diff @@
## master #3869 +/- ##
==========================================
+ Coverage 92.70% 93.53% +0.82%
==========================================
Files 329 149 -180
Lines 11534 8043 -3491
Branches 3257 2550 -707
==========================================
- Hits 10693 7523 -3170
+ Misses 368 164 -204
+ Partials 473 356 -117
Flags with carried forward coverage won't be shown. Click here to find out more. |
Nx Cloud ReportCI ran the following commands for commit 00fd923. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch
Sent with 💌 from NxCloud. |
… namespaces not being reported
00fd923
to
0d58a24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for fixing this!
@rafaelss95, this solution definitely works to force newlines between statements within a To wit, even the test scenario produces an error. In fact, I wonder why there are 4 expected errors when there should have been 3? Code: declare namespace Types {
type Foo = string;
type Bar = string;
interface FooBar {
[key: string]: string;
}
interface BarBaz {
[key: string]: string;
}
} Output:
|
In fact, upon closer look, it seems to have an error even if there is a blank line before. |
Fixes #3863.