Closed 9mm closed 2 years ago
I have the same question here
@bananna0 Put this at the top of .eslintrc.js
const a11yOff = Object
.keys(require('eslint-plugin-vuejs-accessibility').rules)
.reduce((acc, rule) => { acc[`vuejs-accessibility/${rule}`] = 'off'; return acc; }, {});
Then put ...a11yOff
as the last item in the rules
object
@9mm Thank you for this workaround;)
But it would be better to have some one command or any setting to turn it off(
@bananna0 yep, I thought the same thing until I just couldn't take the warnings for every single image and title anymore and caved in
But it would be better to have some one command or any setting to turn it off(
It's an intentional decision to make it hard to disable. Developers should make accessible websites.
The upstream eslint-config-airbnb
library didn't provide an easy way to turn off these rules, either.
Oke i will use another library, my project has literally 1 user who can use his eyes. Not available on the internet. Build under time constraints.
I'm using:
"@vue/eslint-config-airbnb": "^6.0.0",
for an internal app but I don't want to get nagged by the tons of accessibility rules, how can I still use airbnb defaults but disable accessibility without adding every single rule?