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.

warning Definition for rule 'jsx-a11y/href-no-hash' was not found jsx-a11y/href-no-hash

See original GitHub issue

Can 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:

  1. Operating system: Ubuntu 16.04

Steps to Reproduce

  1. Install eslint-config-react-app
  2. 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:closed
  • Created 6 years ago
  • Reactions:14
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

38reactions
gking2224commented, Jul 22, 2017

I found this issue even after noting the comments about compatible versions above. Finally got something to work with this combination of dev dependencies:

    "eslint": "^3.19.0",
    "eslint-config-airbnb": "^15.0.1",
    "eslint-loader": "^1.8.0",
    "eslint-plugin-import": "^2.7.0",
    "eslint-plugin-jsx-a11y": "^5.0.1",
    "eslint-plugin-react": "^7.1.0",

Hope this helps.

38reactions
sirgallifreycommented, Jul 4, 2017

As a workaround I added this to my .eslintrc

    "jsx-a11y/href-no-hash": "off",
    "jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }]

reference https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/CHANGELOG.md#600--2017-06-05

Read more comments on GitHub >

github_iconTop 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 >

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