One good way I have seen to prevent us from making this error is using eslint a11y rules for anchors.
eslint
a11y
Over the course of time, I have learned so many subtle differences in the usage of a vs button because of it.
a
button
Dumb question time: is that for React pages only?
Cheers.
There are parsers for other frameworks like vue or even typescript. So short answer is NO. eslint should work on most modern frameworks.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
One good way I have seen to prevent us from making this error is using
eslinta11yrules for anchors.Over the course of time, I have learned so many subtle differences in the usage of
avsbuttonbecause of it.Dumb question time: is that for React pages only?
Cheers.
There are parsers for other frameworks like vue or even typescript. So short answer is NO.
eslintshould work on most modern frameworks.