Content-Length: 282603 | pFad | https://redirect.github.com/jsx-eslint/eslint-plugin-react/issues/1369

95 `boolean-prop-naming` triggers "Cannot read property 'type' of undefined" · Issue #1369 · jsx-eslint/eslint-plugin-react · GitHub
Skip to content

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

@mindtricksdev

Description

@mindtricksdev

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://redirect.github.com/jsx-eslint/eslint-plugin-react/issues/1369

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy