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
boolean-prop-naming
triggers "Cannot read property 'type' of undefined"
#1369
Labels
Comments
mindtricksdev
changed the title
boolean-prop-naming triggers Cannot read property 'type' of undefined
Aug 14, 2017
boolean-prop-naming
triggers "Cannot read property 'type' of undefined"
Can you show us the full piece of code that trigger the crash ? It will help us to fix the issue. |
I can reproduce this. Will fix. |
Hi, I’m running 7.4.0 and still getting this error: package.json:
.eslintrc.js:
Error:
|
@setek please file a new issue, and ideally include the code it's crashing on :-) |
This was referenced Sep 22, 2018
This was referenced Oct 25, 2018
1 task
1 task
1 task
This was referenced Jan 2, 2019
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
When I add this rule to my .eslintrc file Visual Studio Code triggers a popup error
Cannot read property 'type' of undefined
.This is my rule:
"react/boolean-prop-naming": [1, { "rule": "(^(is|has)[A-Z]([A-Za-z0-9]?)+)|(^[a-z]+(ed|able)$)" }],
I think this is related somehow to the spread operator as the errors trigger when I type
...test
The text was updated successfully, but these errors were encountered: