added eslint-plugin-vue-a11y for accessibility linting

This commit is contained in:
2019-04-03 18:29:01 +02:00
parent b3f1c4f45b
commit 36817261e3
7 changed files with 237 additions and 3 deletions
+6 -2
View File
@@ -2,10 +2,12 @@
<section v-if="opened != null">
<h2>{{ opened.title }}</h2>
<p>{{ opened.body }}</p>
<span
<a
href="#"
@click="closePost()"
@keydown.enter="openPost(post)"
>
close</span>
close</a>
</section>
<ul v-else>
<li
@@ -14,7 +16,9 @@
>
<h2>
<a
:href="'#post-'+post.id"
@click="openPost(post)"
@keydown.enter="openPost(post)"
>
{{ post.title }}</a></h2>
</li>