15

Trying to setup ESLint with Airbnb style guide for my new React Vite Typescript project.

After running npx eslint --init and npm init @eslint/config, and selecting all the aforementioned options, I still can't find the Airbnb style guide option in the list. The list only shows Standard and XO.

Here's the screenshot: enter image description here

codesnerd
  • 767
  • 2
  • 8
  • 23
Usman Ahmed
  • 161
  • 1
  • 4

2 Answers2

3

Looks like this is expected since Google and Airbnb do not officially support Typescript. (https://github.com/iamturns/eslint-config-airbnb-typescript#setup)

Instead, it looks like you can use eslint-config-airbnb-typescript

1

Airbnb and Google options would show up earlier. However the options have now been removed (fix: remove airbnb/google in style guides when using ts)

nizantz
  • 1,561
  • 1
  • 13
  • 17