@thethracian/oxlint-config 0.7.1 → 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.
- package/CHANGELOG.md +33 -1
- package/README.md +76 -54
- package/dist/index.d.ts +1 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -116
- package/dist/index.js.map +1 -1
- package/dist/rules/effect-canonical-patterns.d.ts +3 -0
- package/dist/rules/effect-canonical-patterns.d.ts.map +1 -0
- package/dist/rules/effect-canonical-patterns.js +254 -0
- package/dist/rules/effect-canonical-patterns.js.map +1 -0
- package/dist/rules/effect-canonical-scope.d.ts +5 -0
- package/dist/rules/effect-canonical-scope.d.ts.map +1 -0
- package/dist/rules/effect-canonical-scope.js +46 -0
- package/dist/rules/effect-canonical-scope.js.map +1 -0
- package/dist/rules/effect-default-compat-rules.d.ts +0 -10
- package/dist/rules/effect-default-compat-rules.d.ts.map +1 -1
- package/dist/rules/effect-default-compat-rules.js +0 -21
- package/dist/rules/effect-default-compat-rules.js.map +1 -1
- package/dist/rules/effect-default-env-rules.d.ts +8 -8
- package/dist/rules/effect-default-env-rules.d.ts.map +1 -1
- package/dist/rules/effect-default-env-rules.js +1 -60
- package/dist/rules/effect-default-env-rules.js.map +1 -1
- package/dist/rules/effect-default-helpers.d.ts +1 -5
- package/dist/rules/effect-default-helpers.d.ts.map +1 -1
- package/dist/rules/effect-default-helpers.js +1 -5
- package/dist/rules/effect-default-helpers.js.map +1 -1
- package/dist/rules/effect-default-scan-helpers.d.ts +0 -1
- package/dist/rules/effect-default-scan-helpers.d.ts.map +1 -1
- package/dist/rules/effect-default-scan-helpers.js +1 -1
- package/dist/rules/effect-default-scan-helpers.js.map +1 -1
- package/dist/rules/effect-default-workflow-helpers.d.ts +0 -1
- package/dist/rules/effect-default-workflow-helpers.d.ts.map +1 -1
- package/dist/rules/effect-default-workflow-helpers.js +1 -55
- package/dist/rules/effect-default-workflow-helpers.js.map +1 -1
- package/dist/rules/effect-default.d.ts +1 -1
- package/dist/rules/effect-default.d.ts.map +1 -1
- package/dist/rules/effect-default.js +2 -16
- package/dist/rules/effect-default.js.map +1 -1
- package/dist/rules/effect-path-options.d.ts +1 -55
- package/dist/rules/effect-path-options.d.ts.map +1 -1
- package/dist/rules/effect-path-options.js +1 -126
- package/dist/rules/effect-path-options.js.map +1 -1
- package/dist/rules/effect-rule-names.d.ts +2 -3
- package/dist/rules/effect-rule-names.d.ts.map +1 -1
- package/dist/rules/effect-rule-names.js +9 -72
- package/dist/rules/effect-rule-names.js.map +1 -1
- package/dist/rules/effect-strict-core-specs.d.ts.map +1 -1
- package/dist/rules/effect-strict-core-specs.js +3 -310
- package/dist/rules/effect-strict-core-specs.js.map +1 -1
- package/dist/rules/effect-strict-internals.d.ts +1 -3
- package/dist/rules/effect-strict-internals.d.ts.map +1 -1
- package/dist/rules/effect-strict-internals.js +1 -3
- package/dist/rules/effect-strict-internals.js.map +1 -1
- package/dist/rules/effect-strict-source-predicates.d.ts +1 -20
- package/dist/rules/effect-strict-source-predicates.d.ts.map +1 -1
- package/dist/rules/effect-strict-source-predicates.js +1 -118
- package/dist/rules/effect-strict-source-predicates.js.map +1 -1
- package/dist/rules/effect-strict.d.ts.map +1 -1
- package/dist/rules/effect-strict.js +1 -6
- package/dist/rules/effect-strict.js.map +1 -1
- package/dist/rules/no-module-mocking.d.ts.map +1 -1
- package/dist/rules/no-module-mocking.js +15 -22
- package/dist/rules/no-module-mocking.js.map +1 -1
- package/dist/rules/no-widen-then-assert.d.ts.map +1 -1
- package/dist/rules/no-widen-then-assert.js +79 -52
- package/dist/rules/no-widen-then-assert.js.map +1 -1
- package/dist/rules/plugin.d.ts.map +1 -1
- package/dist/rules/plugin.js +0 -2
- package/dist/rules/plugin.js.map +1 -1
- package/dist/rules/shared/dictionary-types.d.ts.map +1 -1
- package/dist/rules/shared/dictionary-types.js +48 -25
- package/dist/rules/shared/dictionary-types.js.map +1 -1
- package/dist/rules/shared/lexical-type-parameters.d.ts.map +1 -1
- package/dist/rules/shared/lexical-type-parameters.js +8 -5
- package/dist/rules/shared/lexical-type-parameters.js.map +1 -1
- package/package.json +1 -1
- package/dist/rules/effect-default-schema-helpers.d.ts +0 -5
- package/dist/rules/effect-default-schema-helpers.d.ts.map +0 -1
- package/dist/rules/effect-default-schema-helpers.js +0 -191
- package/dist/rules/effect-default-schema-helpers.js.map +0 -1
- package/dist/rules/effect-default-test-helpers.d.ts +0 -4
- package/dist/rules/effect-default-test-helpers.d.ts.map +0 -1
- package/dist/rules/effect-default-test-helpers.js +0 -81
- package/dist/rules/effect-default-test-helpers.js.map +0 -1
- package/dist/rules/effect-global-fetch-ast-traversal.d.ts +0 -4
- package/dist/rules/effect-global-fetch-ast-traversal.d.ts.map +0 -1
- package/dist/rules/effect-global-fetch-ast-traversal.js +0 -92
- package/dist/rules/effect-global-fetch-ast-traversal.js.map +0 -1
- package/dist/rules/effect-global-fetch-ast.d.ts +0 -3
- package/dist/rules/effect-global-fetch-ast.d.ts.map +0 -1
- package/dist/rules/effect-global-fetch-ast.js +0 -304
- package/dist/rules/effect-global-fetch-ast.js.map +0 -1
- package/dist/rules/effect-global-fetch-imports.d.ts +0 -10
- package/dist/rules/effect-global-fetch-imports.d.ts.map +0 -1
- package/dist/rules/effect-global-fetch-imports.js +0 -75
- package/dist/rules/effect-global-fetch-imports.js.map +0 -1
- package/dist/rules/effect-schema-no-redundant-tag-identifier.d.ts +0 -4
- package/dist/rules/effect-schema-no-redundant-tag-identifier.d.ts.map +0 -1
- package/dist/rules/effect-schema-no-redundant-tag-identifier.js +0 -109
- package/dist/rules/effect-schema-no-redundant-tag-identifier.js.map +0 -1
- package/dist/rules/effect-strict-ast-helpers.d.ts +0 -28
- package/dist/rules/effect-strict-ast-helpers.d.ts.map +0 -1
- package/dist/rules/effect-strict-ast-helpers.js +0 -132
- package/dist/rules/effect-strict-ast-helpers.js.map +0 -1
- package/dist/rules/effect-strict-ast-specs.d.ts +0 -3
- package/dist/rules/effect-strict-ast-specs.d.ts.map +0 -1
- package/dist/rules/effect-strict-ast-specs.js +0 -157
- package/dist/rules/effect-strict-ast-specs.js.map +0 -1
- package/dist/rules/effect-strict-boundary-helpers.d.ts +0 -5
- package/dist/rules/effect-strict-boundary-helpers.d.ts.map +0 -1
- package/dist/rules/effect-strict-boundary-helpers.js +0 -68
- package/dist/rules/effect-strict-boundary-helpers.js.map +0 -1
- package/dist/rules/effect-strict-external-helpers.d.ts +0 -10
- package/dist/rules/effect-strict-external-helpers.d.ts.map +0 -1
- package/dist/rules/effect-strict-external-helpers.js +0 -50
- package/dist/rules/effect-strict-external-helpers.js.map +0 -1
- package/dist/rules/effect-strict-helpers.d.ts +0 -16
- package/dist/rules/effect-strict-helpers.d.ts.map +0 -1
- package/dist/rules/effect-strict-helpers.js +0 -121
- package/dist/rules/effect-strict-helpers.js.map +0 -1
- package/dist/rules/effect-strict-segment-helpers.d.ts +0 -14
- package/dist/rules/effect-strict-segment-helpers.d.ts.map +0 -1
- package/dist/rules/effect-strict-segment-helpers.js +0 -201
- package/dist/rules/effect-strict-segment-helpers.js.map +0 -1
- package/dist/rules/effect-strict-wrapper-index.d.ts +0 -6
- package/dist/rules/effect-strict-wrapper-index.d.ts.map +0 -1
- package/dist/rules/effect-strict-wrapper-index.js +0 -147
- package/dist/rules/effect-strict-wrapper-index.js.map +0 -1
- package/dist/rules/no-comments.d.ts +0 -2
- package/dist/rules/no-comments.d.ts.map +0 -1
- package/dist/rules/no-comments.js +0 -22
- package/dist/rules/no-comments.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
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
|
+
|
|
3
35
|
## 0.7.1 - 2026-09-05
|
|
4
36
|
|
|
5
37
|
### Changes
|
|
@@ -26,7 +58,7 @@
|
|
|
26
58
|
|
|
27
59
|
- fix(ts)!: replace noisy lint rules with strict signal (#29) (c4d143c)
|
|
28
60
|
|
|
29
|
-
##
|
|
61
|
+
## Earlier unreleased migration notes (superseded above)
|
|
30
62
|
|
|
31
63
|
### Breaking Changes
|
|
32
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:
|
|
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
|
|
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
|
|
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 |
|
|
40
|
-
| ------------------------ |
|
|
41
|
-
| `complexity` |
|
|
42
|
-
| `max-
|
|
43
|
-
| `max-
|
|
44
|
-
| `max-
|
|
45
|
-
| `max-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
|
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
|
-
|
|
79
|
-
comments
|
|
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
|
|
137
|
-
selected errors in total (
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
```
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
|
208
|
-
|
|
209
|
-
|
|
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
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
|
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 |
|
|
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 |
|
|
242
|
-
| Deliberate omissions | No global `console`, null, ternary, magic-number, naming
|
|
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
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
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 {
|
|
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 (!
|
|
314
|
-
|
|
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
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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:
|
|
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,
|
|
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,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAoBzC,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;IAC3B,sBAAsB;CACd,CAAC;AAEX,MAAM,WAAW,GAAY;IAC3B,GAAG,MAAM,CAAC,WAAW,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;IAE9F,+BAA+B,EAAE,CAAC,OAAO,EAAE,EAAE,iBAAiB,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