Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change eslint rule for <a> tags inside <Link> #30

Merged
merged 1 commit into from
Jan 28, 2021

Conversation

hermannm
Copy link
Member

@hermannm hermannm commented Jan 28, 2021

Next.js convention is to include empty <a> tags inside <Link> tags, but this is not accepted by the "anchor-is-valid" rule in eslint. This change makes an exception to this rule as recommended by the rule's creator. This allows us to follow Next.js convention while still using commit hooks.

Copy link
Member

@MorganFH MorganFH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff, this sounds like a reasonable change.

@MorganFH MorganFH merged commit 15cc4a1 into master Jan 28, 2021
@MorganFH MorganFH deleted the fix/eslint-link-rule branch January 28, 2021 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants