-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Fix static propTypes handling in no-typos #1827
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 static propTypes handling in no-typos #1827
Conversation
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.
Could you also add duplicate test cases that do not use babel-eslint (ie, using Component.propTypes =
)?
(if those test cases already exist - because the bug is about class fields - then my bad) |
@ljharb I think these two cases are what you're looking for? I don't think these need |
That’s be great - generally it’s nice to have every test case repeated, one for each parser. |
@@ -45,7 +45,7 @@ module.exports = { | |||
let propTypesPackageName = null; | |||
let reactPackageName = null; | |||
|
|||
function checkValidPropTypeQualfier(node) { | |||
function checkValidPropTypeQualifier(node) { |
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.
Someone put typos in no-typos
so I can fix typos while I fix no-typos
.
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.
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.
LGTM
@@ -45,7 +45,7 @@ module.exports = { | |||
let propTypesPackageName = null; | |||
let reactPackageName = null; | |||
|
|||
function checkValidPropTypeQualfier(node) { | |||
function checkValidPropTypeQualifier(node) { |
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.
Resolves #1677