@thethracian/oxlint-config 0.7.0 → 0.8.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 (132) hide show
  1. package/CHANGELOG.md +39 -1
  2. package/README.md +76 -54
  3. package/dist/index.d.ts +1 -18
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +14 -116
  6. package/dist/index.js.map +1 -1
  7. package/dist/rules/effect-canonical-patterns.d.ts +3 -0
  8. package/dist/rules/effect-canonical-patterns.d.ts.map +1 -0
  9. package/dist/rules/effect-canonical-patterns.js +254 -0
  10. package/dist/rules/effect-canonical-patterns.js.map +1 -0
  11. package/dist/rules/effect-canonical-scope.d.ts +5 -0
  12. package/dist/rules/effect-canonical-scope.d.ts.map +1 -0
  13. package/dist/rules/effect-canonical-scope.js +46 -0
  14. package/dist/rules/effect-canonical-scope.js.map +1 -0
  15. package/dist/rules/effect-default-compat-rules.d.ts +0 -10
  16. package/dist/rules/effect-default-compat-rules.d.ts.map +1 -1
  17. package/dist/rules/effect-default-compat-rules.js +0 -21
  18. package/dist/rules/effect-default-compat-rules.js.map +1 -1
  19. package/dist/rules/effect-default-env-rules.d.ts +8 -8
  20. package/dist/rules/effect-default-env-rules.d.ts.map +1 -1
  21. package/dist/rules/effect-default-env-rules.js +1 -60
  22. package/dist/rules/effect-default-env-rules.js.map +1 -1
  23. package/dist/rules/effect-default-helpers.d.ts +1 -5
  24. package/dist/rules/effect-default-helpers.d.ts.map +1 -1
  25. package/dist/rules/effect-default-helpers.js +1 -5
  26. package/dist/rules/effect-default-helpers.js.map +1 -1
  27. package/dist/rules/effect-default-scan-helpers.d.ts +0 -1
  28. package/dist/rules/effect-default-scan-helpers.d.ts.map +1 -1
  29. package/dist/rules/effect-default-scan-helpers.js +1 -1
  30. package/dist/rules/effect-default-scan-helpers.js.map +1 -1
  31. package/dist/rules/effect-default-workflow-helpers.d.ts +0 -1
  32. package/dist/rules/effect-default-workflow-helpers.d.ts.map +1 -1
  33. package/dist/rules/effect-default-workflow-helpers.js +1 -55
  34. package/dist/rules/effect-default-workflow-helpers.js.map +1 -1
  35. package/dist/rules/effect-default.d.ts +1 -1
  36. package/dist/rules/effect-default.d.ts.map +1 -1
  37. package/dist/rules/effect-default.js +2 -16
  38. package/dist/rules/effect-default.js.map +1 -1
  39. package/dist/rules/effect-path-options.d.ts +1 -55
  40. package/dist/rules/effect-path-options.d.ts.map +1 -1
  41. package/dist/rules/effect-path-options.js +1 -126
  42. package/dist/rules/effect-path-options.js.map +1 -1
  43. package/dist/rules/effect-rule-names.d.ts +2 -3
  44. package/dist/rules/effect-rule-names.d.ts.map +1 -1
  45. package/dist/rules/effect-rule-names.js +9 -72
  46. package/dist/rules/effect-rule-names.js.map +1 -1
  47. package/dist/rules/effect-strict-core-specs.d.ts.map +1 -1
  48. package/dist/rules/effect-strict-core-specs.js +3 -310
  49. package/dist/rules/effect-strict-core-specs.js.map +1 -1
  50. package/dist/rules/effect-strict-internals.d.ts +1 -3
  51. package/dist/rules/effect-strict-internals.d.ts.map +1 -1
  52. package/dist/rules/effect-strict-internals.js +1 -3
  53. package/dist/rules/effect-strict-internals.js.map +1 -1
  54. package/dist/rules/effect-strict-source-predicates.d.ts +1 -20
  55. package/dist/rules/effect-strict-source-predicates.d.ts.map +1 -1
  56. package/dist/rules/effect-strict-source-predicates.js +1 -118
  57. package/dist/rules/effect-strict-source-predicates.js.map +1 -1
  58. package/dist/rules/effect-strict.d.ts.map +1 -1
  59. package/dist/rules/effect-strict.js +1 -6
  60. package/dist/rules/effect-strict.js.map +1 -1
  61. package/dist/rules/no-module-mocking.d.ts.map +1 -1
  62. package/dist/rules/no-module-mocking.js +15 -22
  63. package/dist/rules/no-module-mocking.js.map +1 -1
  64. package/dist/rules/no-widen-then-assert.d.ts.map +1 -1
  65. package/dist/rules/no-widen-then-assert.js +79 -52
  66. package/dist/rules/no-widen-then-assert.js.map +1 -1
  67. package/dist/rules/plugin.d.ts.map +1 -1
  68. package/dist/rules/plugin.js +0 -2
  69. package/dist/rules/plugin.js.map +1 -1
  70. package/dist/rules/shared/dictionary-types.d.ts.map +1 -1
  71. package/dist/rules/shared/dictionary-types.js +48 -25
  72. package/dist/rules/shared/dictionary-types.js.map +1 -1
  73. package/dist/rules/shared/lexical-type-parameters.d.ts.map +1 -1
  74. package/dist/rules/shared/lexical-type-parameters.js +8 -5
  75. package/dist/rules/shared/lexical-type-parameters.js.map +1 -1
  76. package/package.json +1 -1
  77. package/dist/rules/effect-default-schema-helpers.d.ts +0 -5
  78. package/dist/rules/effect-default-schema-helpers.d.ts.map +0 -1
  79. package/dist/rules/effect-default-schema-helpers.js +0 -191
  80. package/dist/rules/effect-default-schema-helpers.js.map +0 -1
  81. package/dist/rules/effect-default-test-helpers.d.ts +0 -4
  82. package/dist/rules/effect-default-test-helpers.d.ts.map +0 -1
  83. package/dist/rules/effect-default-test-helpers.js +0 -81
  84. package/dist/rules/effect-default-test-helpers.js.map +0 -1
  85. package/dist/rules/effect-global-fetch-ast-traversal.d.ts +0 -4
  86. package/dist/rules/effect-global-fetch-ast-traversal.d.ts.map +0 -1
  87. package/dist/rules/effect-global-fetch-ast-traversal.js +0 -92
  88. package/dist/rules/effect-global-fetch-ast-traversal.js.map +0 -1
  89. package/dist/rules/effect-global-fetch-ast.d.ts +0 -3
  90. package/dist/rules/effect-global-fetch-ast.d.ts.map +0 -1
  91. package/dist/rules/effect-global-fetch-ast.js +0 -304
  92. package/dist/rules/effect-global-fetch-ast.js.map +0 -1
  93. package/dist/rules/effect-global-fetch-imports.d.ts +0 -10
  94. package/dist/rules/effect-global-fetch-imports.d.ts.map +0 -1
  95. package/dist/rules/effect-global-fetch-imports.js +0 -75
  96. package/dist/rules/effect-global-fetch-imports.js.map +0 -1
  97. package/dist/rules/effect-schema-no-redundant-tag-identifier.d.ts +0 -4
  98. package/dist/rules/effect-schema-no-redundant-tag-identifier.d.ts.map +0 -1
  99. package/dist/rules/effect-schema-no-redundant-tag-identifier.js +0 -109
  100. package/dist/rules/effect-schema-no-redundant-tag-identifier.js.map +0 -1
  101. package/dist/rules/effect-strict-ast-helpers.d.ts +0 -28
  102. package/dist/rules/effect-strict-ast-helpers.d.ts.map +0 -1
  103. package/dist/rules/effect-strict-ast-helpers.js +0 -132
  104. package/dist/rules/effect-strict-ast-helpers.js.map +0 -1
  105. package/dist/rules/effect-strict-ast-specs.d.ts +0 -3
  106. package/dist/rules/effect-strict-ast-specs.d.ts.map +0 -1
  107. package/dist/rules/effect-strict-ast-specs.js +0 -157
  108. package/dist/rules/effect-strict-ast-specs.js.map +0 -1
  109. package/dist/rules/effect-strict-boundary-helpers.d.ts +0 -5
  110. package/dist/rules/effect-strict-boundary-helpers.d.ts.map +0 -1
  111. package/dist/rules/effect-strict-boundary-helpers.js +0 -68
  112. package/dist/rules/effect-strict-boundary-helpers.js.map +0 -1
  113. package/dist/rules/effect-strict-external-helpers.d.ts +0 -10
  114. package/dist/rules/effect-strict-external-helpers.d.ts.map +0 -1
  115. package/dist/rules/effect-strict-external-helpers.js +0 -50
  116. package/dist/rules/effect-strict-external-helpers.js.map +0 -1
  117. package/dist/rules/effect-strict-helpers.d.ts +0 -16
  118. package/dist/rules/effect-strict-helpers.d.ts.map +0 -1
  119. package/dist/rules/effect-strict-helpers.js +0 -121
  120. package/dist/rules/effect-strict-helpers.js.map +0 -1
  121. package/dist/rules/effect-strict-segment-helpers.d.ts +0 -14
  122. package/dist/rules/effect-strict-segment-helpers.d.ts.map +0 -1
  123. package/dist/rules/effect-strict-segment-helpers.js +0 -201
  124. package/dist/rules/effect-strict-segment-helpers.js.map +0 -1
  125. package/dist/rules/effect-strict-wrapper-index.d.ts +0 -6
  126. package/dist/rules/effect-strict-wrapper-index.d.ts.map +0 -1
  127. package/dist/rules/effect-strict-wrapper-index.js +0 -147
  128. package/dist/rules/effect-strict-wrapper-index.js.map +0 -1
  129. package/dist/rules/no-comments.d.ts +0 -2
  130. package/dist/rules/no-comments.d.ts.map +0 -1
  131. package/dist/rules/no-comments.js +0 -22
  132. package/dist/rules/no-comments.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0 - 2026-09-05
4
+
5
+ ### Breaking Changes
6
+
7
+ - feat(ts)!: simplify lint policy and restore canonical effect rules (a8e396c)
8
+ - feat(ts)!: lower cyclomatic complexity limit to 10 (b7b3db6)
9
+
10
+ ## Unreleased
11
+
12
+ ### Breaking Changes
13
+
14
+ - Reduced Effect to 35 rules: the unchanged 18 safety rules plus fake-API, service-self-match,
15
+ focused-test, skipped-test, synchronous server-handler checks, and 12 canonical-pattern rules.
16
+ Canonical rules enforce simple Effect operators, schema construction and decoding conventions,
17
+ explicit error contracts, class-based services, and class-aligned service identifiers. Their
18
+ restored implementations use structural checks instead of the former textual heuristics.
19
+ Other deleted rules have no warning or optional registrations; architecture path rules remain
20
+ deleted from the shared preset; consuming repositories own architecture boundary policies.
21
+ - Replaced Effect object options with `effect?: boolean`. `effect: true` enables all 35 Effect
22
+ rules plus `no-service-constructor-imports`; any nonboolean value throws `TypeError`. Removed
23
+ public strict rule selection, path groups, `EffectStrictRuleName`, `TheThracianEffectOptions`,
24
+ and `TheThracianEffectStrictOptions`. Migrate old strict objects to `true` or `false`.
25
+ - Deleted TypeScript/JavaScript `no-comments` while preserving all 14 imported generic
26
+ rules and the service-constructor rule. Rust and Elixir comment bans are unchanged. The base
27
+ preset with `typeAware: true` enables 174 errors (160 native plus 14 generic); Effect-enabled
28
+ local lint enables 210. Syntax-only totals are 143 without Effect and 179 with Effect.
29
+
30
+ - Added a 5,000-line file limit, excluding blank lines and comments, enforced as an error.
31
+
32
+ - Lowered the exported cyclomatic complexity limit from 20 to 10 per function, enforced as
33
+ an error. Refactored rule helpers to comply without suppressions or behavioral changes.
34
+
35
+ ## 0.7.1 - 2026-09-05
36
+
37
+ ### Changes
38
+
39
+ - chore: enable full typescript lint policy (deab231)
40
+
3
41
  ## 0.7.0 - 2026-09-05
4
42
 
5
43
  ### Breaking Changes
@@ -20,7 +58,7 @@
20
58
 
21
59
  - fix(ts)!: replace noisy lint rules with strict signal (#29) (c4d143c)
22
60
 
23
- ## Unreleased (next breaking release)
61
+ ## Earlier unreleased migration notes (superseded above)
24
62
 
25
63
  ### Breaking Changes
26
64
 
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 143 reviewed rules: 129 syntax-only upstream Oxlint rules and 14
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,30 +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
+ The package-local plugin enables these 14 rules as errors in every configuration. They use Oxlint's
56
57
  ESTree and lexical-scope APIs, resolve same-file aliases, and deliberately stop at file boundaries:
57
58
 
58
59
  | Rule | Policy |
@@ -71,15 +72,11 @@ ESTree and lexical-scope APIs, resolve same-file aliases, and deliberately stop
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
+ The TypeScript/JavaScript `no-comments` rule has been deleted. Comments and documentation
79
+ comments are allowed by this package; Rust and Elixir retain their separate comment policies.
83
80
 
84
81
  The former safety-comment assertion rule and Effect suppression-comment requirement are removed.
85
82
  Assertions remain subject to the type-safety rules; they no longer require comments.
@@ -133,8 +130,8 @@ export default theThracian({
133
130
  });
134
131
  ```
135
132
 
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
133
+ Type-aware mode keeps the 14 package-local rules and adds all 31 approved semantic rules for 174
134
+ selected errors in total (160 native upstream errors plus the 14 package-local rules). They include
138
135
  checks for floating and misused promises, awaiting non-thenables, unsafe calls, member access,
139
136
  assignments, arguments, and returns, plus promise rejection and switch exhaustiveness. None of
140
137
  those 31 rules is emitted by the syntax-only config, where Oxlint's semantic backend would not run
@@ -144,12 +141,13 @@ Explicit `any` annotations, non-null assertions, and boundary type assertions re
144
141
  validated, generated, framework, and interop boundaries. The type-aware unsafe-operation rules
145
142
  still reject unchecked use of those values.
146
143
 
147
- ## Effect safety rules (opt in)
144
+ ## Effect safety and canonical-pattern rules (opt in)
148
145
 
149
146
  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
147
+ all 35 retained Effect rules plus the additional
151
148
  `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:
149
+ errors. They combine safety checks with deliberate canonical-pattern guardrails for consistent
150
+ Effect code, including AI-generated code:
153
151
 
154
152
  ```js
155
153
  export default theThracian({
@@ -157,7 +155,7 @@ export default theThracian({
157
155
  });
158
156
  ```
159
157
 
160
- The safety bucket is exactly:
158
+ The unchanged 18-rule safety bucket is:
161
159
 
162
160
  ```text
163
161
  effect-no-floating-effect
@@ -186,33 +184,57 @@ concurrency. The additional service-constructor rule rejects named `make<Capabil
186
184
  relative project modules outside focused test files. They do not include preference-only migration
187
185
  advice.
188
186
 
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.
187
+ The other five retained Effect rules are also enabled by `effect: true`:
194
188
 
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
- });
189
+ ```text
190
+ effect-no-known-fake-api
191
+ effect-require-service-self-match
192
+ effect-no-focused-effect-tests
193
+ effect-no-skipped-effect-tests
194
+ effect-no-runSync-in-server-request-handlers
205
195
  ```
206
196
 
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.
197
+ The public option is `effect?: boolean`. Omit it or pass `false` to disable Effect rules and the
198
+ service-constructor rule. Any nonboolean value, including the former strict options object, throws
199
+ `TypeError`. Replace old `effect: { strict: ... }` configurations with `effect: true` or `false`;
200
+ rule selections and path groups are no longer supported. The public `EffectStrictRuleName`,
201
+ `TheThracianEffectOptions`, and `TheThracianEffectStrictOptions` types are removed.
202
+
203
+ Twelve canonical-pattern rules are also enabled, with no separate switches or warning tier:
204
+
205
+ ```text
206
+ effect-no-catchAll-with-mapError
207
+ effect-prefer-effect-void
208
+ effect-prefer-asVoid
209
+ effect-prefer-flatMap-over-map-flatten
210
+ effect-prefer-succeed-for-static-layers
211
+ effect-prefer-schema-tagged-struct
212
+ effect-prefer-single-schema-literal-union
213
+ effect-schema-require-parseJson-for-json-strings
214
+ effect-schema-no-cast-after-decode
215
+ effect-no-error-channel-widening-to-unknown
216
+ effect-require-service-class-pattern
217
+ effect-require-deterministic-service-keys
218
+ ```
210
219
 
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.
220
+ These are intentional conventions, not claims that every rejected alternative is a runtime bug.
221
+ The checks use AST structure and Effect import identity rather than nearby text. Pure result
222
+ discarding excludes side-effecting callbacks; literal-union simplification excludes annotated
223
+ alternatives. Service keys must equal the class name or end with `/ClassName`.
224
+ Schema cast checks cover direct assertions of decoder calls, not arbitrary downstream dataflow;
225
+ the error-channel rule rejects explicit `unknown` error arguments, not every inferred widening.
226
+ Rules report errors without semantic autofixes.
227
+
228
+ The other deleted rules remain absent, including path-based architecture rules and unreliable
229
+ resource heuristics. Restoring the canonical rules does not reintroduce strict selections or path
230
+ groups. Architecture boundaries belong in consuming repositories with concrete path or import
231
+ contracts, not in this shared preset. The package does not infer module roles from unrelated imports
232
+ or name suffixes, or require consumers to adopt a prescribed folder structure.
233
+
234
+ With `typeAware: true`, the base preset enables 174 errors (160 native plus 14 generic), or
235
+ 210 with `effect: true` (174 plus 35 Effect rules and the service-constructor rule). Without
236
+ type-aware mode, the totals are 143 and 179 respectively. Internal name lists retain
237
+ 34 default rules and one server-handler rule for compatibility; they do not expose strict opt-ins.
216
238
 
217
239
  ## Semantic codemods (explicit only)
218
240
 
@@ -234,12 +256,12 @@ Do not add this call to `lint`, `lint:fix`, `lint-staged`, or a pre-commit hook.
234
256
 
235
257
  | Area | Policy |
236
258
  | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
237
- | Shape | 150-line functions, depth 5, six nested callbacks, seven parameters, complexity 20 |
259
+ | Shape | 5,000-line files, 150-line functions, depth 5, six nested callbacks, seven parameters, complexity 10 |
238
260
  | 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 |
261
+ | TypeScript safety | 14 package-local errors for evidence-preserving assertions, unknown/object boundaries, runtime reflection, mocking, and type-shape hygiene |
240
262
  | 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 |
263
+ | Effect | 35 Effect errors plus the service-constructor rule with `effect: true` |
264
+ | 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
265
 
244
266
  ## Registry links
245
267
 
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,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAKtC,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,GAAG,wBAAwB,CAAC;CAC7C;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,GAAG,8BAA8B,CAAC;CACjD;AAED,MAAM,WAAW,8BAA8B;IAC7C,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACjC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,gBAAgB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,KAAK,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACvC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B;AAodD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,OAAO,GAAE,wBAA6B,GACrC,UAAU,CAAC,OAAO,YAAY,CAAC,CAgBjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAGtC,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAkUD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,OAAO,GAAE,wBAA6B,GACrC,UAAU,CAAC,OAAO,YAAY,CAAC,CAgBjC"}
package/dist/index.js CHANGED
@@ -1,9 +1,8 @@
1
1
  import { dirname, join } from 'node:path';
2
2
  import { Predicate } from 'effect';
3
- import { effectSafetyRuleNames, effectStrictRuleNames } from './rules/effect-rule-names.js';
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)) {
314
- return {};
315
- }
316
- const strictOptions = getStrictEffectOptions(effect);
317
- if (strictOptions) {
318
- validateStrictPathOptions(strictOptions);
227
+ if (effect !== undefined && !Predicate.isBoolean(effect)) {
228
+ throw new TypeError('effect must be a boolean');
319
229
  }
320
- const ruleEntries = effectSafetyRuleNames.map((ruleName) => [
321
- `thethracian/${ruleName}`,
322
- 'error',
230
+ if (!effect)
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
  {
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,UAAU,GAAG;IACjB,WAAW,EAAE,OAAO;CACZ,CAAC;AAEX,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC;AAE/E,MAAM,eAAe,GAAG;IACtB,4BAA4B;IAC5B,oCAAoC;IACpC,yBAAyB;IACzB,mBAAmB;IACnB,sBAAsB;IACtB,kBAAkB;IAClB,gBAAgB;IAChB,mBAAmB;IACnB,0BAA0B;IAC1B,uBAAuB;IACvB,oBAAoB;IACpB,yBAAyB;IACzB,2BAA2B;IAC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sB,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,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"}