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.
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.