使用 eslint + 时更漂亮多余爱彼迎

发布于 2025-01-11 07:14:25 字数 342 浏览 4 评论 0原文

的延续

这是使用 Eslint 时真的需要 Prettier 吗? 据了解,历史上 eslint 主要用于解决代码质量问题和设计模式,这些问题会影响 Javascript 引擎如何使用代码。相比之下,Prettier 用于纯粹风格的事物。然而,看看 eslint 的功能,特别是在使用 Airbnb 风格指南时,似乎所有风格问题都被涵盖了。

Prettier 可能涵盖 eslint (+Airbnb) 未涵盖的哪些规则(如果有)?

This is a continuation of Is Prettier really needed when using Eslint?

My understanding is that historically eslint was primarily used for code quality issues and design patterns, things that impact how the code is consumed by the Javascript engine. In contrast, Prettier was used for things that are purely stylistic. However looking at the capabilities of eslint, especially when using the Airbnb style guide, it appears as though all stylistic issues are covered.

What, if any, rules might Prettier cover that are not covered by eslint (+Airbnb)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文