eslint-plugin-react: `react/jsx-curly-spacing` rule crashes ESLint 4.2.0

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.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 3
  • Comments: 16 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Can a new build get released with this PR included?

Seriously, this was closed nearly a month ago. Is a patch release too much to ask?

@virgofx @planttheidea @Benno007 @lukeapage Released in v7.2.0, really sorry for the delay.