简体   繁体   English

Airbnb 没有出现在 ESLint 初始化风格指南中

[英]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.尝试使用 Airbnb 样式指南为我的新 React Vite Typescript 项目设置 ESLint。

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.运行npx eslint --initnpm init @eslint/config并选择所有上述选项后,我仍然无法在列表中找到 Airbnb 风格指南选项。 The list only shows Standard and XO.该列表仅显示标准和 XO。

Here's the screenshot:这是屏幕截图: 在此处输入图像描述

Looks like this is expected since Google and Airbnb do not officially support Typescript.看起来这是意料之中的,因为 Google 和 Airbnb 不正式支持 Typescript。 ( https://github.com/iamturns/eslint-config-airbnb-typescript#setup ) https://github.com/iamturns/eslint-config-airbnb-typescript#setup

Instead, it looks like you can use eslint-config-airbnb-typescript相反,您似乎可以使用eslint-config-airbnb-typescript

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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