diff --git a/.changeset/no-bare-date-now.md b/.changeset/no-bare-date-now.md deleted file mode 100644 index 337ac49..0000000 --- a/.changeset/no-bare-date-now.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@boring-stack-pkg/eslint-plugin-code-flow": minor ---- - -Add `no-bare-date-now` rule. - -Disallows direct calls to non-deterministic time/random sources (`Date.now()`, `new Date()` with no args, `Date()` with no args, `Math.random()`) outside an allowlisted set of utility paths. Determinism is required for snapshot tests, workflow replays, and time-travel debugging — every consumer should route through a typed util that can be faked in tests. - -Configurable via the `allowedPaths` option (substring match against the source file path). Enabled in the `recommended` config. diff --git a/.changeset/no-historical-comments.md b/.changeset/no-historical-comments.md deleted file mode 100644 index da3692c..0000000 --- a/.changeset/no-historical-comments.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@boring-stack-pkg/eslint-plugin-comment-hygiene": minor ---- - -Add `no-historical-comments` rule. - -Flags source comments that frame code relative to what it used to do or to a past incident — `Codex flagged X`, `before the fix`, `after the refactor`, `we used to`, `no longer`, `kept for backwards compat`, `historically`, `Alpine-era workaround`. Source comments must describe the current invariant; history belongs in the commit message or PR description where it stays pinned to the diff it describes. - -Enabled in the `recommended` config. diff --git a/eslint-plugin-code-flow/CHANGELOG.md b/eslint-plugin-code-flow/CHANGELOG.md index 8ad707c..eebcd80 100644 --- a/eslint-plugin-code-flow/CHANGELOG.md +++ b/eslint-plugin-code-flow/CHANGELOG.md @@ -1,5 +1,15 @@ # @boring-stack-pkg/eslint-plugin-code-flow +## 0.2.0 + +### Minor Changes + +- [#7](https://github.com/boringstack-xyz/eslint-plugins/pull/7) [`77598f4`](https://github.com/boringstack-xyz/eslint-plugins/commit/77598f47b27b07925319c9b1f22987e896bc9380) Thanks [@agjs](https://github.com/agjs)! - Add `no-bare-date-now` rule. + + Disallows direct calls to non-deterministic time/random sources (`Date.now()`, `new Date()` with no args, `Date()` with no args, `Math.random()`) outside an allowlisted set of utility paths. Determinism is required for snapshot tests, workflow replays, and time-travel debugging — every consumer should route through a typed util that can be faked in tests. + + Configurable via the `allowedPaths` option (substring match against the source file path). Enabled in the `recommended` config. + ## 0.1.2 ### Patch Changes diff --git a/eslint-plugin-code-flow/package.json b/eslint-plugin-code-flow/package.json index bf9921d..73c2857 100644 --- a/eslint-plugin-code-flow/package.json +++ b/eslint-plugin-code-flow/package.json @@ -1,6 +1,6 @@ { "name": "@boring-stack-pkg/eslint-plugin-code-flow", - "version": "0.1.2", + "version": "0.2.0", "description": "ESLint plugin for control-flow style rules: guard clauses over wrapped happy paths, etc.", "type": "module", "packageManager": "pnpm@10.33.0", diff --git a/eslint-plugin-comment-hygiene/CHANGELOG.md b/eslint-plugin-comment-hygiene/CHANGELOG.md index d341a7b..5be6718 100644 --- a/eslint-plugin-comment-hygiene/CHANGELOG.md +++ b/eslint-plugin-comment-hygiene/CHANGELOG.md @@ -1,5 +1,15 @@ # @boring-stack-pkg/eslint-plugin-comment-hygiene +## 0.2.0 + +### Minor Changes + +- [#7](https://github.com/boringstack-xyz/eslint-plugins/pull/7) [`77598f4`](https://github.com/boringstack-xyz/eslint-plugins/commit/77598f47b27b07925319c9b1f22987e896bc9380) Thanks [@agjs](https://github.com/agjs)! - Add `no-historical-comments` rule. + + Flags source comments that frame code relative to what it used to do or to a past incident — `Codex flagged X`, `before the fix`, `after the refactor`, `we used to`, `no longer`, `kept for backwards compat`, `historically`, `Alpine-era workaround`. Source comments must describe the current invariant; history belongs in the commit message or PR description where it stays pinned to the diff it describes. + + Enabled in the `recommended` config. + ## 0.1.2 ### Patch Changes diff --git a/eslint-plugin-comment-hygiene/package.json b/eslint-plugin-comment-hygiene/package.json index b57de30..a80bc63 100644 --- a/eslint-plugin-comment-hygiene/package.json +++ b/eslint-plugin-comment-hygiene/package.json @@ -1,6 +1,6 @@ { "name": "@boring-stack-pkg/eslint-plugin-comment-hygiene", - "version": "0.1.2", + "version": "0.2.0", "description": "ESLint rules that catch agent-generated comment patterns: narrative prose ('Here we...', 'Now we...'), PR/issue references, and similar drift-prone metadata that belongs in commit messages, not source.", "type": "module", "packageManager": "pnpm@10.33.0",