-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): [explicit-member-accessibility] add support of "ignoredMethodNames" #895
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
feat(eslint-plugin): [explicit-member-accessibility] add support of "ignoredMethodNames" #895
Conversation
Thanks for the PR, @lonyele! 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 |
f61bb4b
to
874382c
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.
The logic itself LGTM!
A few comments, as well as this request:
I know the initial request was for a duplicate of the class-methods-use-this
rule's exceptMethods
option, but I think I'd rather use a clearer name for the option.
I think ignoredMethodNames
is much clearer about the intended usage.
packages/eslint-plugin/docs/rules/explicit-member-accessibility.md
Outdated
Show resolved
Hide resolved
packages/eslint-plugin/tests/rules/explicit-member-accessibility.test.ts
Show resolved
Hide resolved
packages/eslint-plugin/src/rules/explicit-member-accessibility.ts
Outdated
Show resolved
Hide resolved
packages/eslint-plugin/src/rules/explicit-member-accessibility.ts
Outdated
Show resolved
Hide resolved
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.
LGMT, thanks for doing this
Just a side note, don't hesitate to say anything about the implementations. As long as it's something doable for me I'll definitely apply the feedbacks. |
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!
Codecov Report
@@ Coverage Diff @@
## master #895 +/- ##
==========================================
+ Coverage 94.13% 94.13% +<.01%
==========================================
Files 115 115
Lines 5011 5012 +1
Branches 1399 1400 +1
==========================================
+ Hits 4717 4718 +1
Misses 166 166
Partials 128 128
|
Fixes #482
I added
exceptMethods
option for ignoring the rule when it is specified.