After using eslint-airbnb, I found the following error, which made me completely unable to understand the meaning.

Compiled with warnings.

. / src/index.js
Line 1: Definition for rule "jsx-a11y/href-no-hash" was not found jsx-a11y/href-no-hash

. / src/App.js
Line 1: Definition for rule "jsx-a11y/href-no-hash" was not found jsx-a11y/href-no-hash

Search for the keywords to learn more about each warning.
To ignore, add / / eslint-disable-next-line to the line before.

I don"t know how to solve this problem

May.12,2021

I don't know what you wrote on the first line. The
error message says, 'jsx-a11y/href-no-hash' is missing.
gives a temporary solution by adding a / / eslint-disable-next-line comment on the previous line and directly ignoring the lint on this line.


dependency is not installed, delete node_modules and reinstall. Better clean cache

Menu