-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(eslint-plugin): Add missing rule functions #1047
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): Add missing rule functions #1047
Conversation
Thanks for the PR, @Validark! 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. |
@@ -348,6 +361,7 @@ interface RuleListener { | |||
TSProtectedKeyword?: RuleFunction<TSESTree.TSProtectedKeyword>; | |||
TSPublicKeyword?: RuleFunction<TSESTree.TSPublicKeyword>; | |||
TSQualifiedName?: RuleFunction<TSESTree.TSQualifiedName>; | |||
// TSQuestionToken?: RuleFunction<TSESTree.TSQuestionToken>; |
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.
this should be handled by Token
, shouldn't it?
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.
No idea, just saw it in AST_NODE_TYPES
.
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.
ahh yes, it shouldn't be in there.
Feel free to remove it from AST_NODE_TYPES
.
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.
forgot to RC
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 this!
I pulled all keys missing from
RuleListener
which are present inAST_NODE_TYPES
, and found the added RuleFunctions were missing.JSXNamespacedName
andTSQuestionToken
didn't have definitions inTSESTree
and don't appear to work at the moment, so I commented them out as placeholders.Also made
ClassPropertyBase.value
nullable, since it can be null when the class property is not assigned a value. e.g.