Skip to content

Crash for master branch when extending "plugin:react/all" in eslintrc #3461

Description

@chiawendt

In master branch of this plugin, extending plugin:react/all in eslintrc cause a crash. This bug comes from #3429.

Reproduction:

mkdir demo-config-bug
cd demo-config-bug
npm init --yes
npm i eslint jsx-eslint/eslint-plugin-react#master
touch a.js
echo '{"extends": ["plugin:react/all"]}' > .eslintrc.json
npx eslint .

Result:
Oops! Something went wrong! :(

ESLint: 8.25.0

Error: ESLint configuration in .eslintrc.json » plugin:react/all is invalid:
- Unexpected top-level property "languageOptions".

@jjangga0214

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions