@clipboard-health/ai-rules 2.10.3 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipboard-health/ai-rules",
3
- "version": "2.10.3",
3
+ "version": "2.11.0",
4
4
  "description": "Pre-built AI agent rules for consistent coding standards.",
5
5
  "keywords": [
6
6
  "ai",
@@ -22,6 +22,10 @@
22
22
  - Use explicit access modifiers (`public`, `private`, `protected`) on all class methods and properties
23
23
  - Use a `for` loop with `// eslint-disable-next-line no-await-in-loop` for intentional sequential execution (e.g., rate limiting, ordered processing, or resource constraints); prefer `Promise.all` when operations are independent
24
24
 
25
+ ## Dead Code Cleanup
26
+
27
+ When removing a usage of a function, constant, type, or other symbol, check whether it has any remaining usages (e.g., search the codebase). If it has no other usages, delete the now-unused code. Apply this recursively: if deleting that code removes the last usage of another symbol, delete that symbol too. This includes removing any imports that become unused as a result.
28
+
25
29
  ## Null/Undefined Checks
26
30
 
27
31
  Use `isDefined` helper from `@clipboard-health/util-ts` for `null` and `undefined` checks: