Wrong documentation link in react rules
See original GitHub issueIn 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:
- Created 2 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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…
You may need to restart vscode.