warning Definition for rule 'jsx-a11y/href-no-hash' was not found jsx-a11y/href-no-hash
See original GitHub issueCan you reproduce the problem with npm 4.x?
Yes.
Have you read the Troubleshooting section and searched the User Guide?
Yes.
Environment
$ node -v
v8.1.2
$ npm -v
5.0.3
Then, specify:
- Operating system: Ubuntu 16.04
Steps to Reproduce
- Install
eslint-config-react-app
- Console shows warning
Expected Behavior
No warnings.
Actual Behavior
2:1 warning Definition for rule 'jsx-a11y/href-no-hash' was not found jsx-a11y/href-no-hash
Issue Analytics
- State:
- Created 6 years ago
- Reactions:14
- Comments:12 (6 by maintainers)
Top Results From Across the Web
eslint why does my plugin show Definition for rule was not ...
It means eslint cannot find rules in your index.js . Try having a look at your index.js -exports. They should look something like...
Read more >eslint-plugin-jsdoc - npm
These expressions are used within ESLint plugins to find those parts of your files' code which are of interest to check. However, in...
Read more >Code Quality eslint jest plugin reports rule definitions not found
When specifying eslint-plugin-jest rules in .eslintrc.json , code_quality job reports definition not found for most rules, e.g..
Read more >no-console - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >How to fix Definition for rule typescript-eslint no-use-before ...
The beginning of my imports is always underlined with a red line. It complains about the definition not being found for the specified...
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 FreeTop 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
Top GitHub Comments
I found this issue even after noting the comments about compatible versions above. Finally got something to work with this combination of dev dependencies:
Hope this helps.
As a workaround I added this to my .eslintrc
reference https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/CHANGELOG.md#600--2017-06-05