Usman Ahmed
Usman Ahmed

Reputation: 181

Airbnb does not show up in ESLint init style guides

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

Upvotes: 17

Views: 9492

Answers (2)

nizantz
nizantz

Reputation: 1621

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)

Upvotes: 2

allhailthewraith
allhailthewraith

Reputation: 41

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

Upvotes: 4

Related Questions