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(eslint-plugin): [explicit-member-accessibility] private fields cannot have accessibility modifiers #4117
fix(eslint-plugin): [explicit-member-accessibility] private fields cannot have accessibility modifiers #4117
Conversation
Thanks for the PR, @danny-may! 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. |
✔️ Deploy Preview for typescript-eslint ready! 🔨 Explore the source changes: ab9a7d8 🔍 Inspect the deploy log: https://app.netlify.com/sites/typescript-eslint/deploys/618bfc35a93c6700086c8c07 😎 Browse the preview: https://deploy-preview-4117--typescript-eslint.netlify.app |
Codecov Report
@@ Coverage Diff @@
## master #4117 +/- ##
==========================================
+ Coverage 92.73% 93.33% +0.60%
==========================================
Files 334 152 -182
Lines 11494 8028 -3466
Branches 3270 2576 -694
==========================================
- Hits 10659 7493 -3166
+ Misses 362 180 -182
+ Partials 473 355 -118
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
amazing - thanks for jumping in to fix this!
PR Checklist
Overview
Private fields, like methods, cannot have accessibility modifiers, and so they shouldnt be required by this rule. To fix this I took the fix that was already done for private methods (#3808) and applied it to private fields too.