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.

'jsx-a11y/href-no-hash' was not found jsx-a11y/href-no-hash

See original GitHub issue

Is this a bug report?

yes

Can you also reproduce the problem with npm 4.x?

yes

Environment

  1. node -v: 8.9.0
  2. npm -v: 5.5.1
  3. yarn --version (if you use Yarn): 1.3.2
  4. npm ls react-scripts (if you haven’t ejected): react-scripts@1.0.17

Then, specify:

  1. Operating system: mac os 10.13.1
  2. Browser and version (if relevant):

Steps to Reproduce

(Write your steps here:)

  1. after update
  2. yarn start

Expected Behavior

No warnings!

Actual Behavior

after update to 1.0.17 warning in all file in project image @#image

Reproducible Demo

no

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
gaearoncommented, Nov 6, 2017

That’s the problem:


"eslint": "^4.10.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-config-prettier": "^2.7.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-prettier": "^2.2.0",
"eslint-plugin-react": "^7.4.0",

Using custom ESLint configs with CRA projects is not supported and is subject to issues like this. In particular, the difference in eslint-plugin-jsx-a11y versions is causing the trouble.

3reactions
gaearoncommented, Feb 3, 2018

Of course if you eject you can customize anything you want.

But you can’t expect that you can take two arbitrary ESLint presets and use them together. If they rely on different versions of plugins, you need to either pick just one of them, or wait for them both to “line up”.

We try to keep up with the updates, but we don’t always match what Airbnb preset uses. If you ejected and prefer Airbnb’s preset, just remove ours.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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