简体   繁体   中英

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: 在此处输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM