# 两个跟踪变量未更新

**URL:** https://meta.discourse.org/t/two-tracked-variables-not-updating/345332
**Category:** Development
**Created:** [2025年一月2日 23:18 UTC](https://meta.discourse.org/t/two-tracked-variables-not-updating/345332 "2025-01-02T23:18:03Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [2025年二月3日 07:04 UTC](https://meta.discourse.org/t/two-tracked-variables-not-updating/345332/5 "2025-02-03T07:04:48Z")

</div>

> [@merefield](#):
>
> 设置 Prettier 和 ESlint……前者用于样式，后者用于样式，并且可能有助于捕获一些错误。

不是这个吧？

> [@Automatically lint and format code before commits](https://meta.discourse.org/t/automatically-lint-and-format-code-before-commits/132947):
>
> The discourse repository includes configuration for [lefthook](https://github.com/Arkweid/lefthook). This will automatically check any code before it’s committed to git, and alert about any issues. To get set up, simply enter your discourse development directory and run pnpm install pnpm run lefthook install Files will now be automatically checked before committing. If there are any issues, the commit will be cancelled, and you will be shown a list of errors. This document is version controlled - suggest changes [on github](https://github.com/discourse/discourse-developer-docs/blob/main/docs/03-code-internals/02-lint-and-format.md).

---

_[View the full topic](https://meta.discourse.org/t/two-tracked-variables-not-updating/345332)._
