question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration for rule "react/jsx-sort-props" is invalid

See original GitHub issue

Hello,

I just made the switch to eslint 3, but I still have an error when saving a file (I use atom and linter-eslint)

Error: /home/<package>/node_modules/eslint-config-airbnb/rules/react.js: Configuration for rule "react/jsx-sort-props" is invalid: Value "data["0"].shorthandLast" has additional properties.

Referenced from: airbnb Referenced from: /home/<package>/.eslintrc

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
BenoitAvertycommented, Aug 4, 2016

Never mind, it seems that atom was using the same linter for some reason. Closing and reopening my session did the trick.

1reaction
nathanmarkscommented, Aug 5, 2016

@ljharb

That was 100% my fault.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid configuration for rule "react/jsx-sort-props"
There is a bug in the linter rule's jsx-sort-props.js - although the docs reference a multiline property, said property does not exist anywhere ......
Read more >
Error: "Configuration for rule "react/jsx-sort-props" is invalid ...
Okay so just tried to update some packages, including some eslint-related stuff and shock-of-shocks it broke stuff.
Read more >
Eslint-plugin-react NPM
JSX -specific rules ;, react/jsx-indent-props, Enforce props indentation in JSX ; ✓, react/jsx-key, Disallow missing key props in iterators/collection literals.
Read more >
eslint-plugin-react - npm
React specific linting rules for ESLint. ... your eslint config (add "plugin:react/jsx-runtime" to "extends" ) to disable the relevant rules ...
Read more >
eslint/eslint - Gitter
And then you would need to install eslint-config-airbnb-base or one of their other ... "react/jsx-sort-prop-types": 0, "react/jsx-sort-props": 0, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found