javascript ยท diff

git:20260719.6acc490 to git:20260731.adfd4fb

3 added, 2 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

- <!-- Managed by ai-badger. Source of truth: .ai-badger/instructions/javascript.instructions.md. Do not edit this copy by hand; edit the source and re-run welcome-ai-badger. -->
-
---
description: 'Plain JavaScript conventions.'
applyTo: '**/*.js,**/*.mjs,**/*.cjs'
---
+
+ <!-- Managed by ai-badger. Source of truth: .ai-badger/instructions/javascript.instructions.md. Do not edit this copy by hand; edit the source and re-run welcome-ai-badger. -->
+
# JavaScript
- Prefer ES modules (`import`/`export`) over CommonJS in new code unless the runtime/tooling requires otherwise.
- Use `const`/`let`, never `var`. Prefer strict equality (`===`/`!==`).
- Keep async code in `async`/`await` form over raw `.then()` chains for anything beyond a single call.
- If the project has TypeScript available, prefer adding a new module in TypeScript over plain JavaScript; treat plain JS as legacy-compatible, not the default for new code.
- Avoid global mutable state; pass dependencies explicitly.