- fix for
jsx-a11y/anchor-is-valid
in next.js projects. Add to to your.eslint
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "hrefLeft", "hrefRight" ],
"aspects": [ "invalidHref", "preferButton" ]
}]
source : https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/402