# 代码风格一致性

**URL:** https://meta.discourse.org/t/linting-consistency/390104
**Category:** Development
**Created:** [2025年十二月1日 21:31 UTC](https://meta.discourse.org/t/linting-consistency/390104 "2025-12-01T21:31:53Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2025年十二月1日 21:31 UTC](https://meta.discourse.org/t/linting-consistency/390104/1 "2025-12-01T21:31:54Z")

</div>

我发誓我已经从 `discourse-plugin-skeleton` 复制了所有 lint 配置到我的插件中，当我在我的插件目录中运行

```plaintext
pnpm prettier --write "assets/**/*.{scss,js,gjs,hbs}"

```

时，得到的结果与我在 discourse 核心目录中运行

```plaintext
./bin/lint --fix plugins/discourse-pfaffmanager/assets/**/*.{scss,js,gjs,hbs}

```

时得到的结果不同。

可以预料到，后者与 GitHub Actions 运行时发生的情况相匹配。

我真正想要的是在 VSCode 中保存时能发生“正确的事情”，但我很确定那是另一个问题。

---

_[View the full topic](https://meta.discourse.org/t/linting-consistency/390104)._
