@heyramzi/lint 2.17.0 → 2.17.1

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.
@@ -77,7 +77,7 @@ export const patternsSubjectVoice = [
77
77
  id: "passive-voice",
78
78
  name: "Every scenario is named by its trigger",
79
79
  // Ramzi's rule, not a bot tell. What passes and why (states, "you're paid", "what's worked", "made-up"): TECHLOG.md, "Passive voice reads grammar".
80
- test: /\b(?:is|are|was|were|be|been|being|['’]s|['’]re)\s+(?:not\s+|never\s+|already\s+|also\s+|still\s+|just\s+|then\s+|\w+ly\s+)?(?!(?:interested|based|related|supposed|used\s+to|tired|bored|bloated|excited|worried|scared|married|located|involved|impressed|devastated|surprised|confused|annoyed|pleased|stuck|qualified|indeed|need|feed|seed|speed|breed|greed|weed)\b|(?:closed|locked|unlocked|connected|disconnected|archived|enabled|disabled|un[a-z]{2,}ed)\b(?!\s+by\b)|broken\b(?!\s+(?:by|into|down|up|out|off)\b)|caught\s+up\b|made\s+up\s+of\b|done\b(?=\s*(?:[.!?,;:)]|$)))(?:[a-z]{3,}ed|built|made|done|given|taken|known|seen|written|shown|sent|kept|put|found|held|told|paid|brought|bought|caught|taught|chosen|driven|forgotten|hidden|broken|spoken|stolen|frozen|drawn|grown|thrown|worn|torn)\b(?!-)(?<!['’]s\s+(?:\w+\s+)?(?:worked|changed|happened|improved|grown|started|stopped|moved|shifted|increased|decreased|dropped|evolved|helped|failed|succeeded|slowed))(?:(?<!\b(?:you|we)(?:['’]re|\s+are)\s+(?:\w+\s+)?\w+)|(?=\s+by\b))/i,
80
+ test: /\b(?:is|are|was|were|be|been|being|['’]s|['’]re)\s+(?:not\s+|never\s+|already\s+|also\s+|still\s+|just\s+|then\s+|\w+ly\s+)?(?!(?:interested|based|related|supposed|used\s+to|tired|bored|bloated|excited|worried|scared|married|located|involved|impressed|devastated|surprised|confused|annoyed|pleased|stuck|qualified|indeed|need|feed|seed|speed|breed|greed|weed)\b|(?:closed|locked|unlocked|connected|disconnected|archived|enabled|disabled|paused|un[a-z]{2,}ed)\b(?!\s+by\b)|broken\b(?!\s+(?:by|into|down|up|out|off)\b)|caught\s+up\b|made\s+up\s+of\b|done\b(?=\s*(?:[.!?,;:)]|$)))(?:[a-z]{3,}ed|built|made|done|given|taken|known|seen|written|shown|sent|kept|put|found|held|told|paid|brought|bought|caught|taught|chosen|driven|forgotten|hidden|broken|spoken|stolen|frozen|drawn|grown|thrown|worn|torn)\b(?!-)(?<!['’]s\s+(?:\w+\s+)?(?:worked|changed|happened|improved|grown|started|stopped|moved|shifted|increased|decreased|dropped|evolved|helped|failed|succeeded|slowed))(?:(?<!\b(?:you|we)(?:['’]re|\s+are)\s+(?:\w+\s+)?\w+)|(?=\s+by\b))/i,
81
81
  rule: 'A passive: "is named", "was built", "are treated". Nobody does anything in it, so it reads as a report, not a person talking. Name who does it: "we name every scenario by its trigger". Ramzi, 9 Nov 2026, on a Reddit draft: "anything passive tense basically is bad, bad, bad".',
82
82
  example:
83
83
  '"Every scenario we build is named by its trigger" / "anything that comes through chat is treated as an emergency" / "the report was sent on Monday"',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heyramzi/lint",
3
- "version": "2.17.0",
3
+ "version": "2.17.1",
4
4
  "description": "Shared oxlint rules, base config and gates for Studio projects",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -75,6 +75,13 @@ function stemOf(name) {
75
75
  return dot === -1 ? name : name.slice(0, dot);
76
76
  }
77
77
 
78
+ /** A `-v2` beside a tracked `-v1` is a deliberate series, like a frozen study whose v1 stays readable (voice study-v2.json, 19 Nov 2026). */
79
+ function continuesSeries(tree, parts, name, stem) {
80
+ if (!stem.endsWith("-v2")) return false;
81
+ const first = `${stem.slice(0, -3)}-v1${name.slice(stem.length)}`;
82
+ return tree.isTracked([...parts.slice(0, -1), first].join("/"));
83
+ }
84
+
78
85
  export function fossilNames(tree) {
79
86
  const found = [];
80
87
  for (const file of tree.added) {
@@ -88,8 +95,9 @@ export function fossilNames(tree) {
88
95
  message: `${grabBag}/ is a folder named for having no category. Put the file in the folder of what it does.`,
89
96
  });
90
97
  }
91
- const stem = stemOf(parts.at(-1));
92
- if (FOSSIL_STEM.test(stem)) {
98
+ const name = parts.at(-1);
99
+ const stem = stemOf(name);
100
+ if (FOSSIL_STEM.test(stem) && !continuesSeries(tree, parts, name, stem)) {
93
101
  found.push({
94
102
  file,
95
103
  rule: "fossil-name",