Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eslint: use airbnb styles but exclude all jsx-a11y

I would like to use airbnb styles ESLint. However, accessibility does not bring values in my project, and actually it add more noise to the code.

Is there a way to use AirBnb eslint but disable jsx-a11y? I can fork the AirBnb repo and delete the link, but just wonder if there is a better way.

like image 462
greensuisse Avatar asked Feb 03 '19 15:02

greensuisse


1 Answers

In your .eslintrc you can change:

"extends": [
  "airbnb"
]

to

"extends": [
  "airbnb-base",
  "airbnb/rules/react"
]

All credit goes to oustn

like image 181
fotonmoton Avatar answered Sep 21 '22 03:09

fotonmoton