You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -540,6 +540,27 @@ export default antfu({
540
540
541
541
As it's in maintenance mode, we only accept bug fixes for Vue 2. It might also be removed in the future when `eslint-plugin-vue` drops support for Vue 2. We recommend upgrading to Vue 3 if possible.
542
542
543
+
#### Vue Accessibility
544
+
545
+
To enable Vue accessibility support, you need to explicitly turn it on:
546
+
547
+
```js
548
+
// eslint.config.js
549
+
importantfufrom'@antfu/eslint-config'
550
+
551
+
exportdefaultantfu({
552
+
vue: {
553
+
a11y:true
554
+
},
555
+
})
556
+
```
557
+
558
+
Running `npx eslint` should prompt you to install the required dependencies, otherwise, you can install them manually:
559
+
560
+
```bash
561
+
npm i -D eslint-plugin-vuejs-accessibility
562
+
```
563
+
543
564
### Optional Configs
544
565
545
566
We provide some optional configs for specific use cases, that we don't include their dependencies by default.
0 commit comments