0

I am using eslint in my project and I'd like to use airbnb style. The problem I have is I need to install eslint-config-airbnb dependency which depends on eslint-plugin-jsx-a11y and some react plugin. My project is not a react project and I wonder how I can use airbnb eslint without bring react dependencies.

Below is the configuration in my eslint to use airbnb style:

extends: [airbnb, eslint:recommended]
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523

1 Answers1

1

Airbnb ships a separate package eslint-config-airbnb-base (which eslint-config-airbnb inherits from) that contains just the base styles without React/JSX support.

Matthew Herbst
  • 29,477
  • 23
  • 85
  • 128