jsx-eslint / eslint-plugin-react

React-specific linting rules for ESLint
MIT License
8.86k stars 2.75k forks source link

[Bug]: `non-jsx` is listed in `react/jsx-one-expression-per-line` options but is not available #3773

Closed mirabtellegen closed 5 days ago

mirabtellegen commented 5 days ago

Is there an existing issue for this?

Description Overview

In these docs for the eslint rule react/jsx-one-expression-per-line, a non-jsx allow option is mentioned that seems unavailable.

eslint rule docs

Expected Behavior

I would love for this option to become available, but it should otherwise be removed from the docs

eslint-plugin-react version

v7.31.11

eslint version

v8.28.0

node version

v8.19.2

ljharb commented 5 days ago

That feature was released in v7.34.0. You're on v7.31.11. If you update to the latest you should be fine.