Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 551
Usman Ahmed Avatar asked Dec 09 '25 19:12

Usman Ahmed


2 Answers

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

like image 140
allhailthewraith Avatar answered Dec 11 '25 10:12

allhailthewraith


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)

like image 39
nizantz Avatar answered Dec 11 '25 10:12

nizantz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!