Skip to content

'jsx-sort-prop-types' rule is missing. #1028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tommai78101 opened this issue Jan 17, 2017 · 5 comments
Closed

'jsx-sort-prop-types' rule is missing. #1028

tommai78101 opened this issue Jan 17, 2017 · 5 comments

Comments

@tommai78101
Copy link

tommai78101 commented Jan 17, 2017

I get this message:

Definition for rule 'react/jsx-sort-prop-types' was not found

I know it has been deprecated for a while ago, but I'm still getting this message.

Not sure what's wrong.

@ljharb
Copy link
Member

ljharb commented Jan 17, 2017

The rule was renamed to just "react/sort-prop-types". Perhaps you're using an outdated config?

@tommai78101
Copy link
Author

tommai78101 commented Jan 17, 2017

I'm not sure where to change that. Do you know where to change this?

EDIT: I did see this:

'sort-prop-types': require('./lib/rules/sort-prop-types'),

But nothing that says to use jsx-sort-prop-types anywhere in the index.js.

@ljharb
Copy link
Member

ljharb commented Jan 17, 2017

It's in the change log for v6, #549

@ljharb
Copy link
Member

ljharb commented Jan 17, 2017

I'd check your .eslintrc file, as well as if you're using a shared config, update to the latest version. If you are, npm ls is probably complaining.

@tommai78101
Copy link
Author

Yep, found it in .eslintrc. Just renaming the rule name fixes it. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants