Skip to content

boolean-prop-naming triggers "Cannot read property 'type' of undefined" #1369

Closed
@mindtricksdev

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions