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.

Wrong documentation link in react rules

See original GitHub issue

In eslint-config-airbnb react rules, many configuration refer to a wrong documentation path.

// Enforce defaultProps declarations alphabetical sorting
// https://github.com/yannickcr/eslint-plugin-react/blob/843d71a432baf0f01f598d7cf1eea75ad6896e4b/docs/rules/jsx-sort-default-props.md
'react/jsx-sort-default-props': ['off', {
   ignoreCase: true,
}],

It should probably not contain the blob ID key but rather the ID master, like:

// Enforce defaultProps declarations alphabetical sorting
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sort-default-props.md
'react/jsx-sort-default-props': ['off', {
   ignoreCase: true,
}],

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
DavidHenri008commented, Nov 11, 2021

Wonderfull it works. Thanks for your advice. I think I am too much used to instant updates, I am always hoping things should work without restarting software or PC…

1reaction
ljharbcommented, Nov 11, 2021

You may need to restart vscode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid Hook Call Warning - React
There are three common reasons you might be seeing it: You might have mismatching versions of React and React DOM. You might be...
Read more >
React-router URLs don't work when refreshing or writing ...
The historyApiFallback is what fixed this issue for me. Now routing works correctly and I can refresh the page or type in the...
Read more >
jsx-eslint/eslint-plugin-react: React-specific linting rules for ...
See eslint documentation for more information about extending configuration files. ... rules: { // ... any rules you want 'react/jsx-uses-react': 'error', ...
Read more >
Getting started with React - Learn web development | MDN
Unlike the other frameworks covered in this module, React does not enforce strict rules around code conventions or file organization.
Read more >
next/link | Next.js
as - Optional decorator for the path that will be shown in the browser URL bar. Before Next.js 9.5.3 this was used for...
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