Skip to content

Error: "Configuration for rule "react/jsx-sort-props" is invalid" #1016

@himynameisdave

Description

@himynameisdave

Okay so just tried to update some packages, including some eslint-related stuff and shock-of-shocks it broke stuff... So I removed everything (rm -rf /node_modules, cleared out devDependencies in package.json), thinking I'd just re-install everything from scratch using this dumb long-ass command npm i -D eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-react eslint-plugin-jsx-a11y. Still broken (because I assume it tried to install the updated versions)... looks like something in the React package maybe?

screen shot 2016-08-16 at 4 10 14 pm

Trying to use this as an eslint config is actually stupid though. The number of times I've installed all this shit using the above command, only to have it throw errors is extremely frustrating. It's dependants should just be included and I shouldn't have to install all this extra bullshit just to use it. I understand the thinking behind it (what if not everyone wants the whole kitchen sink right) but clearly wider developer ergonomics were not a priority in designing this. Anyone have an alternative solution/one eslint config file will all the rules in it?

Anyway, for now I guess I'll just revert to whatever versions I was using before and just never update anything because who knows what might break tomorrow ¯__(ツ)__/¯

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions