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.

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

See original GitHub issue

I am attempting to have Atom show me linting issues in the editor by following these instructions.

Every javscript file I open produces this ESLint warning: “Definition for rule ‘react/jsx-sort-prop-types’ was not found”

This is related to the removal of this rule here.

I presume the ESLint configuration is referencing this removed rule, but I’m at a loss trying to identify where exactly.

Environment

Run these commands in the project folder and fill in their results:

  1. npm ls react-scripts (if you haven’t ejected): web-poc@0.1. C:\Users\cha\Documents\Repos\poc `-- (empty)
  2. node -v: v.4.6.1
  3. npm -v: 4.2.0

Then, specify:

  1. Operating system: Windows 10
  2. Browser and version: N/A

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
chrisahardiecommented, Feb 6, 2017

@gaearon Sigh, you are correct. There was an unexpected .eslintrc up the directory tree which was causing this issue. Sorry for non-issue, I owe you a beer.

giphy

0reactions
bcbriancommented, Oct 24, 2017

Wow been struggling with this for months! Gave up and just stumbled on this 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

(ESLint) Definition for rule 'react/jsx-sort-prop-types' was not ...
This just means that ESLint does not match the configuration found on .eslintrc file. Clicking the "Reset global ...
Read more >
(Eslint) Definition For Rule 'React/Jsx-Sort-Prop-Types' Was ...
(Eslint) Definition For Rule 'React/Jsx-Sort-Prop-Types' Was Not Found ... periodic system whereby the or atomic species the atomic number may be indicated ......
Read more >
API - React Select
Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present...
Read more >
How to create reusable form components with React Hook ...
We can see that the type of register is UserFormRegister<RegistrationFormFields> , but passing in a register property of type UserFormRegister< ...
Read more >
Typechecking With PropTypes - React
React.PropTypes has moved into a different package since React v15.5. Please use the prop-types library instead. We provide a codemod script to automate...
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