@thethracian/oxlint-config 0.7.1 → 0.9.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.
Files changed (143) hide show
  1. package/CHANGELOG.md +39 -1
  2. package/README.md +85 -56
  3. package/dist/codemods/ast-helpers.js +3 -9
  4. package/dist/codemods/ast-helpers.js.map +1 -1
  5. package/dist/index.d.ts +1 -18
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +16 -117
  8. package/dist/index.js.map +1 -1
  9. package/dist/rules/effect-canonical-patterns.d.ts +3 -0
  10. package/dist/rules/effect-canonical-patterns.d.ts.map +1 -0
  11. package/dist/rules/effect-canonical-patterns.js +254 -0
  12. package/dist/rules/effect-canonical-patterns.js.map +1 -0
  13. package/dist/rules/effect-canonical-scope.d.ts +5 -0
  14. package/dist/rules/effect-canonical-scope.d.ts.map +1 -0
  15. package/dist/rules/effect-canonical-scope.js +46 -0
  16. package/dist/rules/effect-canonical-scope.js.map +1 -0
  17. package/dist/rules/effect-default-compat-rules.d.ts +0 -10
  18. package/dist/rules/effect-default-compat-rules.d.ts.map +1 -1
  19. package/dist/rules/effect-default-compat-rules.js +0 -21
  20. package/dist/rules/effect-default-compat-rules.js.map +1 -1
  21. package/dist/rules/effect-default-env-rules.d.ts +8 -8
  22. package/dist/rules/effect-default-env-rules.d.ts.map +1 -1
  23. package/dist/rules/effect-default-env-rules.js +1 -60
  24. package/dist/rules/effect-default-env-rules.js.map +1 -1
  25. package/dist/rules/effect-default-helpers.d.ts +1 -5
  26. package/dist/rules/effect-default-helpers.d.ts.map +1 -1
  27. package/dist/rules/effect-default-helpers.js +1 -5
  28. package/dist/rules/effect-default-helpers.js.map +1 -1
  29. package/dist/rules/effect-default-scan-helpers.d.ts +0 -1
  30. package/dist/rules/effect-default-scan-helpers.d.ts.map +1 -1
  31. package/dist/rules/effect-default-scan-helpers.js +1 -1
  32. package/dist/rules/effect-default-scan-helpers.js.map +1 -1
  33. package/dist/rules/effect-default-workflow-helpers.d.ts +0 -1
  34. package/dist/rules/effect-default-workflow-helpers.d.ts.map +1 -1
  35. package/dist/rules/effect-default-workflow-helpers.js +1 -55
  36. package/dist/rules/effect-default-workflow-helpers.js.map +1 -1
  37. package/dist/rules/effect-default.d.ts +1 -1
  38. package/dist/rules/effect-default.d.ts.map +1 -1
  39. package/dist/rules/effect-default.js +2 -16
  40. package/dist/rules/effect-default.js.map +1 -1
  41. package/dist/rules/effect-native-references.d.ts.map +1 -1
  42. package/dist/rules/effect-native-references.js +11 -19
  43. package/dist/rules/effect-native-references.js.map +1 -1
  44. package/dist/rules/effect-path-options.d.ts +1 -55
  45. package/dist/rules/effect-path-options.d.ts.map +1 -1
  46. package/dist/rules/effect-path-options.js +1 -126
  47. package/dist/rules/effect-path-options.js.map +1 -1
  48. package/dist/rules/effect-rule-core.d.ts.map +1 -1
  49. package/dist/rules/effect-rule-core.js +1 -6
  50. package/dist/rules/effect-rule-core.js.map +1 -1
  51. package/dist/rules/effect-rule-names.d.ts +2 -3
  52. package/dist/rules/effect-rule-names.d.ts.map +1 -1
  53. package/dist/rules/effect-rule-names.js +9 -72
  54. package/dist/rules/effect-rule-names.js.map +1 -1
  55. package/dist/rules/effect-strict-core-specs.d.ts.map +1 -1
  56. package/dist/rules/effect-strict-core-specs.js +3 -310
  57. package/dist/rules/effect-strict-core-specs.js.map +1 -1
  58. package/dist/rules/effect-strict-internals.d.ts +1 -3
  59. package/dist/rules/effect-strict-internals.d.ts.map +1 -1
  60. package/dist/rules/effect-strict-internals.js +1 -3
  61. package/dist/rules/effect-strict-internals.js.map +1 -1
  62. package/dist/rules/effect-strict-source-predicates.d.ts +1 -20
  63. package/dist/rules/effect-strict-source-predicates.d.ts.map +1 -1
  64. package/dist/rules/effect-strict-source-predicates.js +1 -118
  65. package/dist/rules/effect-strict-source-predicates.js.map +1 -1
  66. package/dist/rules/effect-strict.d.ts.map +1 -1
  67. package/dist/rules/effect-strict.js +1 -6
  68. package/dist/rules/effect-strict.js.map +1 -1
  69. package/dist/rules/no-module-mocking.d.ts.map +1 -1
  70. package/dist/rules/no-module-mocking.js +15 -22
  71. package/dist/rules/no-module-mocking.js.map +1 -1
  72. package/dist/rules/no-try-catch-throw.d.ts +2 -0
  73. package/dist/rules/no-try-catch-throw.d.ts.map +1 -0
  74. package/dist/rules/no-try-catch-throw.js +23 -0
  75. package/dist/rules/no-try-catch-throw.js.map +1 -0
  76. package/dist/rules/no-widen-then-assert.d.ts.map +1 -1
  77. package/dist/rules/no-widen-then-assert.js +79 -52
  78. package/dist/rules/no-widen-then-assert.js.map +1 -1
  79. package/dist/rules/plugin.js +2 -2
  80. package/dist/rules/plugin.js.map +1 -1
  81. package/dist/rules/shared/dictionary-types.d.ts.map +1 -1
  82. package/dist/rules/shared/dictionary-types.js +48 -25
  83. package/dist/rules/shared/dictionary-types.js.map +1 -1
  84. package/dist/rules/shared/lexical-type-parameters.d.ts.map +1 -1
  85. package/dist/rules/shared/lexical-type-parameters.js +8 -5
  86. package/dist/rules/shared/lexical-type-parameters.js.map +1 -1
  87. package/package.json +1 -1
  88. package/dist/rules/effect-default-schema-helpers.d.ts +0 -5
  89. package/dist/rules/effect-default-schema-helpers.d.ts.map +0 -1
  90. package/dist/rules/effect-default-schema-helpers.js +0 -191
  91. package/dist/rules/effect-default-schema-helpers.js.map +0 -1
  92. package/dist/rules/effect-default-test-helpers.d.ts +0 -4
  93. package/dist/rules/effect-default-test-helpers.d.ts.map +0 -1
  94. package/dist/rules/effect-default-test-helpers.js +0 -81
  95. package/dist/rules/effect-default-test-helpers.js.map +0 -1
  96. package/dist/rules/effect-global-fetch-ast-traversal.d.ts +0 -4
  97. package/dist/rules/effect-global-fetch-ast-traversal.d.ts.map +0 -1
  98. package/dist/rules/effect-global-fetch-ast-traversal.js +0 -92
  99. package/dist/rules/effect-global-fetch-ast-traversal.js.map +0 -1
  100. package/dist/rules/effect-global-fetch-ast.d.ts +0 -3
  101. package/dist/rules/effect-global-fetch-ast.d.ts.map +0 -1
  102. package/dist/rules/effect-global-fetch-ast.js +0 -304
  103. package/dist/rules/effect-global-fetch-ast.js.map +0 -1
  104. package/dist/rules/effect-global-fetch-imports.d.ts +0 -10
  105. package/dist/rules/effect-global-fetch-imports.d.ts.map +0 -1
  106. package/dist/rules/effect-global-fetch-imports.js +0 -75
  107. package/dist/rules/effect-global-fetch-imports.js.map +0 -1
  108. package/dist/rules/effect-schema-no-redundant-tag-identifier.d.ts +0 -4
  109. package/dist/rules/effect-schema-no-redundant-tag-identifier.d.ts.map +0 -1
  110. package/dist/rules/effect-schema-no-redundant-tag-identifier.js +0 -109
  111. package/dist/rules/effect-schema-no-redundant-tag-identifier.js.map +0 -1
  112. package/dist/rules/effect-strict-ast-helpers.d.ts +0 -28
  113. package/dist/rules/effect-strict-ast-helpers.d.ts.map +0 -1
  114. package/dist/rules/effect-strict-ast-helpers.js +0 -132
  115. package/dist/rules/effect-strict-ast-helpers.js.map +0 -1
  116. package/dist/rules/effect-strict-ast-specs.d.ts +0 -3
  117. package/dist/rules/effect-strict-ast-specs.d.ts.map +0 -1
  118. package/dist/rules/effect-strict-ast-specs.js +0 -157
  119. package/dist/rules/effect-strict-ast-specs.js.map +0 -1
  120. package/dist/rules/effect-strict-boundary-helpers.d.ts +0 -5
  121. package/dist/rules/effect-strict-boundary-helpers.d.ts.map +0 -1
  122. package/dist/rules/effect-strict-boundary-helpers.js +0 -68
  123. package/dist/rules/effect-strict-boundary-helpers.js.map +0 -1
  124. package/dist/rules/effect-strict-external-helpers.d.ts +0 -10
  125. package/dist/rules/effect-strict-external-helpers.d.ts.map +0 -1
  126. package/dist/rules/effect-strict-external-helpers.js +0 -50
  127. package/dist/rules/effect-strict-external-helpers.js.map +0 -1
  128. package/dist/rules/effect-strict-helpers.d.ts +0 -16
  129. package/dist/rules/effect-strict-helpers.d.ts.map +0 -1
  130. package/dist/rules/effect-strict-helpers.js +0 -121
  131. package/dist/rules/effect-strict-helpers.js.map +0 -1
  132. package/dist/rules/effect-strict-segment-helpers.d.ts +0 -14
  133. package/dist/rules/effect-strict-segment-helpers.d.ts.map +0 -1
  134. package/dist/rules/effect-strict-segment-helpers.js +0 -201
  135. package/dist/rules/effect-strict-segment-helpers.js.map +0 -1
  136. package/dist/rules/effect-strict-wrapper-index.d.ts +0 -6
  137. package/dist/rules/effect-strict-wrapper-index.d.ts.map +0 -1
  138. package/dist/rules/effect-strict-wrapper-index.js +0 -147
  139. package/dist/rules/effect-strict-wrapper-index.js.map +0 -1
  140. package/dist/rules/no-comments.d.ts +0 -2
  141. package/dist/rules/no-comments.d.ts.map +0 -1
  142. package/dist/rules/no-comments.js +0 -22
  143. package/dist/rules/no-comments.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0 - 2026-11-22
4
+
5
+ ### Breaking Changes
6
+
7
+ - feat(ts)!: forbid try, catch, and throw (9cea810)
8
+
9
+ ## 0.8.0 - 2026-09-05
10
+
11
+ ### Breaking Changes
12
+
13
+ - feat(ts)!: simplify lint policy and restore canonical effect rules (a8e396c)
14
+ - feat(ts)!: lower cyclomatic complexity limit to 10 (b7b3db6)
15
+
16
+ ## Unreleased
17
+
18
+ ### Breaking Changes
19
+
20
+ - Reduced Effect to 35 rules: the unchanged 18 safety rules plus fake-API, service-self-match,
21
+ focused-test, skipped-test, synchronous server-handler checks, and 12 canonical-pattern rules.
22
+ Canonical rules enforce simple Effect operators, schema construction and decoding conventions,
23
+ explicit error contracts, class-based services, and class-aligned service identifiers. Their
24
+ restored implementations use structural checks instead of the former textual heuristics.
25
+ Other deleted rules have no warning or optional registrations; architecture path rules remain
26
+ deleted from the shared preset; consuming repositories own architecture boundary policies.
27
+ - Replaced Effect object options with `effect?: boolean`. `effect: true` enables all 35 Effect
28
+ rules plus `no-service-constructor-imports`; any nonboolean value throws `TypeError`. Removed
29
+ public strict rule selection, path groups, `EffectStrictRuleName`, `TheThracianEffectOptions`,
30
+ and `TheThracianEffectStrictOptions`. Migrate old strict objects to `true` or `false`.
31
+ - Deleted TypeScript/JavaScript `no-comments` while preserving all 14 imported generic
32
+ rules and the service-constructor rule. Rust and Elixir comment bans are unchanged. The base
33
+ preset with `typeAware: true` enables 174 errors (160 native plus 14 generic); Effect-enabled
34
+ local lint enables 210. Syntax-only totals are 143 without Effect and 179 with Effect.
35
+
36
+ - Added a 5,000-line file limit, excluding blank lines and comments, enforced as an error.
37
+
38
+ - Lowered the exported cyclomatic complexity limit from 20 to 10 per function, enforced as
39
+ an error. Refactored rule helpers to comply without suppressions or behavioral changes.
40
+
3
41
  ## 0.7.1 - 2026-09-05
4
42
 
5
43
  ### Changes
@@ -26,7 +64,7 @@
26
64
 
27
65
  - fix(ts)!: replace noisy lint rules with strict signal (#29) (c4d143c)
28
66
 
29
- ## Unreleased (next breaking release)
67
+ ## Earlier unreleased migration notes (superseded above)
30
68
 
31
69
  ### Breaking Changes
32
70
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ export default theThracian({ typeAware: true });
21
21
 
22
22
  ## Base policy
23
23
 
24
- The base config selects 143 reviewed rules: 128 syntax-only upstream Oxlint rules and 15
24
+ The syntax-only base config selects 144 reviewed rules: 129 syntax-only upstream Oxlint rules and 15
25
25
  package-local TypeScript safety rules. Oxlint normally supplies
26
26
  implicit `correctness` warnings; the config performs one category-level reset with
27
27
  `correctness: 'allow'` and then assigns `error` to the approved rules explicitly. This is not a
@@ -29,31 +29,31 @@ warning downgrade and is not a collection of rule-level disables: unapproved rul
29
29
  enter the effective allowlist.
30
30
 
31
31
  The audit physically removed generic homegrown rules whose style or naming opinions did not provide a
32
- dependable correctness signal. It also removed the flagged Effect preference rules and semantically
32
+ dependable correctness signal. It also removed unreliable Effect heuristics and semantically
33
33
  unsound module-scope rules; those rules are not merely hidden by configuration. The retained
34
- package-local Effect safety and architecture rules are a separate, intentionally opt-in policy and
35
- remain available below.
34
+ package-local Effect rules form one opt-in preset, described below.
36
35
 
37
36
  The base structural limits are deliberately configurable values with clear review value:
38
37
 
39
- | Rule | Limit |
40
- | ------------------------ | --------------------------------------------: |
41
- | `complexity` | 20 |
42
- | `max-depth` | 5 levels |
43
- | `max-lines-per-function` | 150 lines, excluding blank lines and comments |
44
- | `max-nested-callbacks` | 6 levels |
45
- | `max-params` | 7 parameters |
46
-
47
- Line width belongs to the formatter, not the lint policy. There is no maximum file-length or
48
- import-count rule. The base profile also intentionally omits global `console`, naming, null,
38
+ | Rule | Limit |
39
+ | ------------------------ | ----------------------------------------------: |
40
+ | `complexity` | 10 |
41
+ | `max-lines` | 5,000 lines, excluding blank lines and comments |
42
+ | `max-depth` | 5 levels |
43
+ | `max-lines-per-function` | 150 lines, excluding blank lines and comments |
44
+ | `max-nested-callbacks` | 6 levels |
45
+ | `max-params` | 7 parameters |
46
+
47
+ Line width belongs to the formatter, not the lint policy. Files are capped at 5,000 lines, excluding blank lines and comments. There is no
48
+ import-count rule. General naming preferences are absent except for the imported symbol-name rule.
49
+ The base profile also intentionally omits global `console`, null,
49
50
  ternary, magic-number, documentation, and absolute `any`/assertion bans: those rules produce
50
51
  mechanical churn or reject legitimate framework, generated-code, and interop boundaries without a
51
52
  reliable defect signal.
52
53
 
53
54
  ## Additional TypeScript safety rules
54
55
 
55
- The package-local plugin enables these 15 rules as errors in every configuration. They use Oxlint's
56
- ESTree and lexical-scope APIs, resolve same-file aliases, and deliberately stop at file boundaries:
56
+ The package-local plugin enables these 15 rules as errors in every configuration.
57
57
 
58
58
  | Rule | Policy |
59
59
  | ------------------------------------------------ | ----------------------------------------------------------------------------------------------- |
@@ -66,20 +66,24 @@ ESTree and lexical-scope APIs, resolve same-file aliases, and deliberately stop
66
66
  | `thethracian/no-reflect-get` | Requires typed property access or boundary parsing instead of global `Reflect.get`. |
67
67
  | `thethracian/no-runtime-typeof` | Rejects ad hoc `typeof` narrowing; explicit type guards and existence probes remain valid. |
68
68
  | `thethracian/no-shape-in-symbol-names` | Rejects locally owned symbol names containing `shape`; static member names remain valid. |
69
+ | `thethracian/no-try-catch-throw` | Rejects `try` statements, including `try/finally`, and `throw` statements. |
69
70
  | `thethracian/no-unknown-parameters` | Rejects `unknown` function inputs except supported predicate and `cause` conventions. |
70
71
  | `thethracian/no-unknown-returns` | Rejects explicit `unknown`, `Promise<unknown>`, and `PromiseLike<unknown>` return contracts. |
71
72
  | `thethracian/no-unknown-type-aliases` | Rejects aliases that resolve to `unknown`. |
72
73
  | `thethracian/no-unsafe-dictionary-type` | Rejects dictionary value contracts based on `unknown`, `any`, `object`, or `{}`. |
73
74
  | `thethracian/no-widen-then-assert` | Rejects immutable flows that widen evidence and later assert it back to a narrow type. |
74
- | `thethracian/no-comments` | Rejects line, block, JSDoc, JSX, and interpolation comments; interpreter shebangs remain valid. |
75
75
 
76
76
  These rules have no automatic migration behavior and do not replace the native Oxlint allowlist.
77
77
 
78
- Comments are errors in JavaScript and TypeScript, including documentation and lint-directive
79
- comments. The rule uses parser comment tokens, so strings, template text, and regular expressions
80
- containing comment-like text are unaffected. Interpreter shebangs are execution directives and
81
- remain valid. There is no automatic comment deletion: removing compiler directives or semantic
82
- annotations can change behavior. Put explanations in external documentation instead.
78
+ `thethracian/no-try-catch-throw` is a breaking change to the base preset, including with
79
+ `effect: false`. Use Effect's [`Result`](https://effect.website/docs/v4/data-types/result)
80
+ ([`Either`](https://effect.website/docs/v3/data-types/either) in Effect 3) when callers need the
81
+ failure value. Use [`Option`](https://effect.website/docs/v4/data-types/option) when a value may be
82
+ absent. At boundaries that call throwing APIs, use `Effect.try` or `Effect.tryPromise` to turn
83
+ exceptions into typed failures. Use `Effect.ensuring` for cleanup that previously ran in `finally`.
84
+
85
+ The TypeScript/JavaScript `no-comments` rule has been deleted. Comments and documentation
86
+ comments are allowed by this package; Rust and Elixir retain their separate comment policies.
83
87
 
84
88
  The former safety-comment assertion rule and Effect suppression-comment requirement are removed.
85
89
  Assertions remain subject to the type-safety rules; they no longer require comments.
@@ -133,8 +137,8 @@ export default theThracian({
133
137
  });
134
138
  ```
135
139
 
136
- Type-aware mode keeps the 15 package-local rules and adds all 31 approved semantic rules for 174
137
- selected errors in total (159 native upstream errors plus the 15 package-local rules). They include
140
+ Type-aware mode keeps the 15 package-local rules and adds all 31 approved semantic rules for 175
141
+ selected errors in total (160 native upstream errors plus the 15 package-local rules). They include
138
142
  checks for floating and misused promises, awaiting non-thenables, unsafe calls, member access,
139
143
  assignments, arguments, and returns, plus promise rejection and switch exhaustiveness. None of
140
144
  those 31 rules is emitted by the syntax-only config, where Oxlint's semantic backend would not run
@@ -144,12 +148,13 @@ Explicit `any` annotations, non-null assertions, and boundary type assertions re
144
148
  validated, generated, framework, and interop boundaries. The type-aware unsafe-operation rules
145
149
  still reject unchecked use of those values.
146
150
 
147
- ## Effect safety rules (opt in)
151
+ ## Effect safety and canonical-pattern rules (opt in)
148
152
 
149
- Effect rules are disabled by default. Pass `effect: true` when the project uses Effect and wants
150
- the 18 retained high-confidence safety rules plus the additional
153
+ Effect-specific checks are disabled by default. Pass `effect: true` when the project uses Effect and wants
154
+ all 35 retained Effect rules plus the additional
151
155
  `thethracian/no-service-constructor-imports` rule. These package-local rules are all reported as
152
- errors and focus on observable hazards rather than style preferences:
156
+ errors. They combine safety checks with deliberate canonical-pattern guardrails for consistent
157
+ Effect code, including AI-generated code:
153
158
 
154
159
  ```js
155
160
  export default theThracian({
@@ -157,7 +162,7 @@ export default theThracian({
157
162
  });
158
163
  ```
159
164
 
160
- The safety bucket is exactly:
165
+ The unchanged 18-rule safety bucket is:
161
166
 
162
167
  ```text
163
168
  effect-no-floating-effect
@@ -186,33 +191,57 @@ concurrency. The additional service-constructor rule rejects named `make<Capabil
186
191
  relative project modules outside focused test files. They do not include preference-only migration
187
192
  advice.
188
193
 
189
- ## Strict Effect architecture (explicit opt in)
190
-
191
- There are 59 retained strict Effect architecture rules. None is enabled by `effect: true` alone.
192
- Select each rule by name and provide every path group that it inspects; selected rules remain
193
- errors.
194
+ The other five retained Effect rules are also enabled by `effect: true`:
194
195
 
195
- ```js
196
- export default theThracian({
197
- effect: {
198
- strict: {
199
- adapterLayers: ['src/platform/**'],
200
- entrypoints: ['src/main.ts'],
201
- rules: ['effect-no-global-fetch', 'effect-require-platform-runmain-at-entrypoints'],
202
- },
203
- },
204
- });
196
+ ```text
197
+ effect-no-known-fake-api
198
+ effect-require-service-self-match
199
+ effect-no-focused-effect-tests
200
+ effect-no-skipped-effect-tests
201
+ effect-no-runSync-in-server-request-handlers
205
202
  ```
206
203
 
207
- The API rejects `effect.strict: true`, unknown rule names, missing required path groups, and
208
- malformed path arrays. Use `strict: false` or `strict: { enabled: false, rules: [...] }` for an
209
- explicit disable. The path groups are project declarations, not guessed `src/**` defaults.
204
+ The public option is `effect?: boolean`. Omit it or pass `false` to disable Effect rules and the
205
+ service-constructor rule. Any nonboolean value, including the former strict options object, throws
206
+ `TypeError`. Replace old `effect: { strict: ... }` configurations with `effect: true` or `false`;
207
+ rule selections and path groups are no longer supported. The public `EffectStrictRuleName`,
208
+ `TheThracianEffectOptions`, and `TheThracianEffectStrictOptions` types are removed.
209
+
210
+ Twelve canonical-pattern rules are also enabled, with no separate switches or warning tier:
211
+
212
+ ```text
213
+ effect-no-catchAll-with-mapError
214
+ effect-prefer-effect-void
215
+ effect-prefer-asVoid
216
+ effect-prefer-flatMap-over-map-flatten
217
+ effect-prefer-succeed-for-static-layers
218
+ effect-prefer-schema-tagged-struct
219
+ effect-prefer-single-schema-literal-union
220
+ effect-schema-require-parseJson-for-json-strings
221
+ effect-schema-no-cast-after-decode
222
+ effect-no-error-channel-widening-to-unknown
223
+ effect-require-service-class-pattern
224
+ effect-require-deterministic-service-keys
225
+ ```
210
226
 
211
- The plugin also retains 19 specialized migration, version, error-model, schema, and test analyzers
212
- for explicit rule configuration. They are never in the base preset or the 18-rule safety bucket,
213
- and they never become warnings. Together with the 18 safety rules and 59 strict architecture rules,
214
- the retained Effect rule surface is 96 rules; the service-constructor rule above is an additional
215
- opt-in rule outside those buckets.
227
+ These are intentional conventions, not claims that every rejected alternative is a runtime bug.
228
+ The checks use AST structure and Effect import identity rather than nearby text. Pure result
229
+ discarding excludes side-effecting callbacks; literal-union simplification excludes annotated
230
+ alternatives. Service keys must equal the class name or end with `/ClassName`.
231
+ Schema cast checks cover direct assertions of decoder calls, not arbitrary downstream dataflow;
232
+ the error-channel rule rejects explicit `unknown` error arguments, not every inferred widening.
233
+ Rules report errors without semantic autofixes.
234
+
235
+ The other deleted rules remain absent, including path-based architecture rules and unreliable
236
+ resource heuristics. Restoring the canonical rules does not reintroduce strict selections or path
237
+ groups. Architecture boundaries belong in consuming repositories with concrete path or import
238
+ contracts, not in this shared preset. The package does not infer module roles from unrelated imports
239
+ or name suffixes, or require consumers to adopt a prescribed folder structure.
240
+
241
+ With `typeAware: true`, the base preset enables 175 errors (160 native plus 15 package-local), or
242
+ 211 with `effect: true` (175 plus 35 Effect rules and the service-constructor rule). Without
243
+ type-aware mode, the totals are 144 and 180 respectively. Internal name lists retain
244
+ 34 default rules and one server-handler rule for compatibility; they do not expose strict opt-ins.
216
245
 
217
246
  ## Semantic codemods (explicit only)
218
247
 
@@ -234,12 +263,12 @@ Do not add this call to `lint`, `lint:fix`, `lint-staged`, or a pre-commit hook.
234
263
 
235
264
  | Area | Policy |
236
265
  | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
237
- | Shape | 150-line functions, depth 5, six nested callbacks, seven parameters, complexity 20 |
266
+ | Shape | 5,000-line files, 150-line functions, depth 5, six nested callbacks, seven parameters, complexity 10 |
238
267
  | Upstream safety | `import/no-duplicates`, `no-debugger`, empty-block checks, `no-eval`, `no-new-func`, `no-script-url`, strict equality, `oxc/only-used-in-recursion`, `prefer-const`, caught-error preservation |
239
- | TypeScript safety | 15 package-local errors for evidence-preserving assertions, unknown/object boundaries, runtime reflection, mocking, and type-shape hygiene |
268
+ | TypeScript safety | 15 package-local errors covering exception syntax, evidence-preserving assertions, unknown/object boundaries, runtime reflection, mocking, and type-shape hygiene |
240
269
  | Type-aware safety | Unsafe operations, floating/misused promises, promise rejection errors, exhaustive switches |
241
- | Effect | 18 safety errors with `effect: true`; 59 architecture errors only when explicitly selected with paths |
242
- | Deliberate omissions | No global `console`, null, ternary, magic-number, naming, file-size, import-count, documentation, or absolute assertion/`any` bans |
270
+ | Effect | 35 Effect errors plus the service-constructor rule with `effect: true` |
271
+ | Deliberate omissions | No global `console`, null, ternary, magic-number, general naming (except the imported symbol-name rule), import-count, documentation, or absolute assertion/`any` bans |
243
272
 
244
273
  ## Registry links
245
274
 
@@ -1,4 +1,4 @@
1
- import { Predicate } from 'effect';
1
+ import { Option, Predicate } from 'effect';
2
2
  export const codemodObjectValues = (node) => Object.keys(node).map((key) => node[key]);
3
3
  export const isCodemodArray = (value) => Array.isArray(value);
4
4
  export const isCodemodNode = (value) => Predicate.isObject(value) &&
@@ -7,17 +7,11 @@ export const isCodemodNode = (value) => Predicate.isObject(value) &&
7
7
  Predicate.isString(value.type);
8
8
  export const nodeStart = (node) => {
9
9
  const start = 'start' in node ? node.start : undefined;
10
- if (!Predicate.isNumber(start)) {
11
- throw new Error('jscodeshift node is missing a start offset');
12
- }
13
- return start;
10
+ return Option.getOrThrowWith(Option.liftPredicate(start, Predicate.isNumber), () => new Error('jscodeshift node is missing a start offset'));
14
11
  };
15
12
  export const nodeEnd = (node) => {
16
13
  const end = 'end' in node ? node.end : undefined;
17
- if (!Predicate.isNumber(end)) {
18
- throw new Error('jscodeshift node is missing an end offset');
19
- }
20
- return end;
14
+ return Option.getOrThrowWith(Option.liftPredicate(end, Predicate.isNumber), () => new Error('jscodeshift node is missing an end offset'));
21
15
  };
22
16
  export const sourceForNode = (source, node) => source.slice(nodeStart(node), nodeEnd(node));
23
17
  //# sourceMappingURL=ast-helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ast-helpers.js","sourceRoot":"","sources":["../../src/codemods/ast-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAA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AM,CAAC,MAAM,OAAO,GAAG,CAAC,IAA0B,EAAU,EAAE;IAC5D,MAAM,GAAG,GAAG,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;IACjD,OAAO,MAAM,CAAC,cAAc,CAC1B,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,CAAC,QAAQ,CAAC,EAC7C,GAAG,EAAE,CAAC,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAC7D,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAc,EAAE,IAA0B,EAAU,EAAE,CAClF,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,24 +1,7 @@
1
- import type { EffectStrictRuleName } from './rules/effect-rule-names';
2
1
  import { defineConfig } from 'oxlint';
3
- export type { EffectStrictRuleName } from './rules/effect-rule-names';
4
2
  export interface TheThracianOxlintOptions {
5
3
  typeAware?: boolean;
6
- effect?: boolean | TheThracianEffectOptions;
7
- }
8
- export interface TheThracianEffectOptions {
9
- enabled?: boolean;
10
- strict?: false | TheThracianEffectStrictOptions;
11
- }
12
- export interface TheThracianEffectStrictOptions {
13
- adapterLayers?: readonly string[];
14
- compositionRoots?: readonly string[];
15
- configLayers?: readonly string[];
16
- domain?: readonly string[];
17
- enabled?: boolean;
18
- entrypoints?: readonly string[];
19
- integrationTests?: readonly string[];
20
- rules: readonly EffectStrictRuleName[];
21
- unitTests?: readonly string[];
4
+ effect?: boolean;
22
5
  }
23
6
  export default function theThracianOxlint(options?: TheThracianOxlintOptions): ReturnType<typeof defineConfig>;
24
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,K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AE,wBAA6B,GACrC,UAAU,CAAC,OAAO,YAAY,CAAC,CAiBjC"}
package/dist/index.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import { dirname, join } from 'node:path';
2
- import { Predicate } from 'effect';
3
- import { effectSafetyRuleNames, effectStrictRuleNames } from './rules/effect-rule-names.js';
2
+ import { Option, Predicate } from 'effect';
3
+ import { effectDefaultRuleNames, effectStrictRuleNames } from './rules/effect-rule-names.js';
4
4
  import { defineConfig } from 'oxlint';
5
5
  import { fileURLToPath } from 'node:url';
6
- import { strictPathOptionKeys } from './rules/effect-path-options.js';
7
6
  const categories = {
8
7
  correctness: 'allow',
9
8
  };
@@ -23,7 +22,6 @@ const portedRuleNames = [
23
22
  'no-unknown-type-aliases',
24
23
  'no-unsafe-dictionary-type',
25
24
  'no-widen-then-assert',
26
- 'no-comments',
27
25
  ];
28
26
  const portedRules = {
29
27
  ...Object.fromEntries(portedRuleNames.map((ruleName) => [`thethracian/${ruleName}`, 'error'])),
@@ -45,6 +43,7 @@ const nativeRuleAllowlist = [
45
43
  'import/no-duplicates',
46
44
  'import/no-self-import',
47
45
  'max-depth',
46
+ 'max-lines',
48
47
  'max-lines-per-function',
49
48
  'max-nested-callbacks',
50
49
  'max-params',
@@ -224,121 +223,19 @@ const typeAwareNativeRuleNames = [
224
223
  'typescript/unbound-method',
225
224
  ];
226
225
  const typeAwareNativeRuleNameSet = new Set(typeAwareNativeRuleNames);
227
- const isEffectOptions = (effect) => Predicate.isObject(effect) && !Array.isArray(effect);
228
- const isEffectEnabled = (effect) => {
229
- if (effect === true) {
230
- return true;
231
- }
232
- if (isEffectOptions(effect)) {
233
- return effect.enabled !== false;
234
- }
235
- return false;
236
- };
237
- const isStrictEffectOptions = (value) => {
238
- if (!Predicate.isObject(value) || Array.isArray(value) || !('rules' in value)) {
239
- return false;
240
- }
241
- const rules = value.rules;
242
- return Array.isArray(rules) && rules.every(Predicate.isString);
243
- };
244
- const getStrictEffectOptions = (effect) => {
245
- if (!isEffectEnabled(effect) || !isEffectOptions(effect)) {
246
- return undefined;
247
- }
248
- const strict = effect.strict;
249
- if (strict === undefined || strict === false) {
250
- return undefined;
251
- }
252
- if (strict === true) {
253
- throw new TypeError('effect.strict: true is no longer supported; select rules and provide their explicit project paths');
254
- }
255
- if (!isStrictEffectOptions(strict)) {
256
- throw new TypeError('effect.strict must be false or an object with a rules array');
257
- }
258
- if (strict.enabled === false) {
259
- return undefined;
260
- }
261
- return strict;
262
- };
263
- const strictEffectRuleNameSet = new Set(effectStrictRuleNames);
264
- const strictRulePathRequirements = {
265
- 'effect-no-direct-clock-random-outside-adapters': ['adapterLayers'],
266
- 'effect-no-direct-http-fs-outside-platform-services': ['adapterLayers'],
267
- 'effect-no-direct-process-env-outside-config-layer': ['configLayers'],
268
- 'effect-no-global-fetch': ['adapterLayers'],
269
- 'effect-no-leaked-service-dependencies': ['domain'],
270
- 'effect-no-live-services-in-unit-tests': ['unitTests', 'integrationTests'],
271
- 'effect-no-node-builtins-when-effect-platform-exists': ['adapterLayers'],
272
- 'effect-no-provide-in-domain-modules': ['domain'],
273
- 'effect-no-run-outside-entrypoints': ['entrypoints', 'unitTests', 'integrationTests'],
274
- 'effect-no-service-construction-outside-layer': ['adapterLayers', 'configLayers'],
275
- 'effect-no-test-runtime-leakage': ['unitTests', 'integrationTests'],
276
- 'effect-prefer-in-memory-implementations': ['unitTests', 'integrationTests'],
277
- 'effect-require-centralized-provision': ['compositionRoots'],
278
- 'effect-require-platform-runmain-at-entrypoints': ['entrypoints'],
279
- 'effect-require-provided-services-in-tests': ['unitTests', 'integrationTests'],
280
- 'effect-require-testclock-for-time-code': ['unitTests', 'integrationTests'],
281
- 'effect-schema-require-config-schema': ['configLayers'],
282
- };
283
- const selectedStrictRuleNames = (strictOptions) => {
284
- for (const ruleName of strictOptions.rules) {
285
- if (!strictEffectRuleNameSet.has(ruleName)) {
286
- throw new TypeError(`Unknown strict Effect rule: ${ruleName}`);
287
- }
288
- }
289
- return strictOptions.rules;
290
- };
291
- const validateStrictRulePaths = (strictOptions, ruleNames) => {
292
- for (const ruleName of ruleNames) {
293
- const requiredPathOptions = strictRulePathRequirements[ruleName] ?? [];
294
- for (const pathOption of requiredPathOptions) {
295
- if (!Object.hasOwn(strictOptions, pathOption)) {
296
- throw new TypeError(`Strict Effect rule ${ruleName} requires explicit path option: ${pathOption}`);
297
- }
298
- }
299
- }
300
- };
301
- const validateStrictPathOptions = (strictOptions) => {
302
- for (const pathOption of strictPathOptionKeys) {
303
- if (!Object.hasOwn(strictOptions, pathOption)) {
304
- continue;
305
- }
306
- const value = strictOptions[pathOption];
307
- if (!Array.isArray(value) || !value.every(Predicate.isString)) {
308
- throw new TypeError(`Strict Effect path option ${pathOption} must be an array of strings`);
309
- }
310
- }
311
- };
312
226
  const buildEffectRules = (effect) => {
313
- if (!isEffectEnabled(effect)) {
227
+ if (effect === undefined)
314
228
  return {};
315
- }
316
- const strictOptions = getStrictEffectOptions(effect);
317
- if (strictOptions) {
318
- validateStrictPathOptions(strictOptions);
319
- }
320
- const ruleEntries = effectSafetyRuleNames.map((ruleName) => [
321
- `thethracian/${ruleName}`,
322
- 'error',
229
+ const enabled = Option.getOrThrowWith(Option.liftPredicate(effect, Predicate.isBoolean), () => new TypeError('effect must be a boolean'));
230
+ if (!enabled)
231
+ return {};
232
+ return Object.fromEntries([
233
+ ...[...effectDefaultRuleNames, ...effectStrictRuleNames].map((name) => [
234
+ `thethracian/${name}`,
235
+ 'error',
236
+ ]),
237
+ ['thethracian/no-service-constructor-imports', 'error'],
323
238
  ]);
324
- if (strictOptions) {
325
- const strictRuleNames = selectedStrictRuleNames(strictOptions);
326
- validateStrictRulePaths(strictOptions, strictRuleNames);
327
- ruleEntries.push(...strictRuleNames.map((ruleName) => [
328
- `thethracian/${ruleName}`,
329
- strictEffectRuleSetting(ruleName, strictOptions),
330
- ]));
331
- }
332
- ruleEntries.push(['thethracian/no-service-constructor-imports', 'error']);
333
- return Object.fromEntries(ruleEntries);
334
- };
335
- const strictEffectRuleSetting = (ruleName, strictOptions) => {
336
- const requiredPathOptions = strictRulePathRequirements[ruleName];
337
- if (!requiredPathOptions || requiredPathOptions.length === 0) {
338
- return 'error';
339
- }
340
- const pathOptions = Object.fromEntries(requiredPathOptions.map((pathOption) => [pathOption, strictOptions[pathOption]]));
341
- return ['error', pathOptions];
342
239
  };
343
240
  const typeAwareRuleSetting = (isTypeAware) => {
344
241
  if (isTypeAware) {
@@ -362,7 +259,7 @@ const configOptions = (typeAwareOptions) => {
362
259
  return {};
363
260
  };
364
261
  const configuredNativeRules = {
365
- complexity: ['error', { max: 20 }],
262
+ complexity: ['error', { max: 10 }],
366
263
  eqeqeq: 'error',
367
264
  'import/no-duplicates': [
368
265
  'error',
@@ -372,6 +269,7 @@ const configuredNativeRules = {
372
269
  },
373
270
  ],
374
271
  'max-depth': ['error', { max: 5 }],
272
+ 'max-lines': ['error', { max: 5000, skipBlankLines: true, skipComments: true }],
375
273
  'max-lines-per-function': [
376
274
  'error',
377
275
  {
@@ -406,6 +304,7 @@ export default function theThracianOxlint(options = {}) {
406
304
  rules: {
407
305
  ...baseRules(typeAwareRule),
408
306
  ...portedRules,
307
+ 'thethracian/no-try-catch-throw': 'error',
409
308
  ...buildEffectRules(options.effect),
410
309
  },
411
310
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAyCnE,MAAM,UA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,QAAQ,EAAE,EAAE,CAAC,CAAC,0BAA0B,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,aAAa,CAAC;KAChF,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,qBAAqB,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,CAAC,CAC7E,CAAC;AAEJ,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,UAAoC,EAAE;IAEtC,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IACvF,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACnE,MAAM,aAAa,GAAG,oBAAoB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAE9D,OAAO,YAAY,CAAC;QAClB,GAAG,aAAa,CAAC,gBAAgB,CAAC;QAClC,UAAU;QACV,SAAS,EAAE,CAAC,UAAU,CAAC;QACvB,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;QACrB,KAAK,EAAE;YACL,GAAG,SAAS,CAAC,aAAa,CAAC;YAC3B,GAAG,WAAW;YACd,gCAAgC,EAAE,OAAO;YACzC,GAAG,gBAAgB,CAAC,OAAO,CAAC,MAAM,CAAC;SACpC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { RuleSpec } from './effect-rule-core';
2
+ export declare const effectCanonicalSpecs: readonly RuleSpec[];
3
+ //# sourceMappingURL=effect-canonical-patterns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"effect-canonical-patterns.d.ts","sourceRoot":"","sources":["../../src/rules/effect-canonical-patterns.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAW,QAAQ,EAAc,MAAM,oBAAoB,CAAC;AAkQxE,eAAO,MAAM,oBAAoB,EAAE,SAAS,QAAQ,EAsEnD,CAAC"}