Skip to content

react/jsx-curly-spacing rule crashes ESLint 4.2.0 #1290

Closed
@nwoltman

Description

It looks like something changed (or broke) in how ESLint handles schemas between 4.1.1 and 4.2.0.

When I try to run ESLint with this rule enabled:

"react/jsx-curly-spacing": [2, {"when": "never", "children": true}]

I get the following error:

can't resolve reference #/definitions/basicConfig from id #
can't resolve reference #/definitions/basicConfigOrBoolean from id #
Warning: [object Object]:
        Configuration for rule "react/jsx-curly-spacing" is invalid:
refVal[2] is not a function Use --force to continue.

Quick link to the react/jsx-curly-spacing schema

Update: I'm guessing eslint/eslint#8852 was the culprit.

Activity

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

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions