Repository navigation
Open
Description
Owner request (2026-10-30). Follow-up to #532, which swapped @mpsuesser/oxlint-plugin-effect for @enfect/oxlint 0.9.0 (configs.recommended, every rule at error) and kept the existing staged-rollout allowances in vite.config.ts. It supersedes the per-rule pay-down list in #436.
Goal: every effect/* rule at error with zero sites. Remove each override, or keep it only as a genuine can't-apply with its reason written next to it. No disable comments.
Site counts are from vp lint --format json on the #532 branch. For off rules, the count is what the rule reports with the override removed.
Global warn (staged rollout, #436)
| Rule | Sites | Reason in config |
|---|---|---|
require-safety-comment-for-type-assertion |
782 | modules predate the preset |
casting-awareness |
629 | awareness prompt that fires on every as, including the narrowings AsFields needs; kept visible as a warning on purpose |
prefer-option-over-null |
549 | predates the preset |
avoid-native-object-helpers |
348 | predates the preset |
avoid-non-null-assertion |
237 | predates the preset |
imperative-loops |
212 | predates the preset |
avoid-any |
143 | predates the preset |
effect-run-in-body |
127 | predates the preset |
no-chained-type-assertions |
106 | predates the preset |
no-barrel-imports |
92 (outside the schema tier) | predates the preset |
no-unsafe-dictionary-type |
83 | predates the preset; never bind effect's Record as Record (#275) |
no-runtime-typeof |
78 | predates the preset |
use-clock-service |
72 | predates the preset |
avoid-direct-json |
70 | predates the preset |
prefer-effect-is |
70 | predates the preset |
avoid-untagged-errors |
64 | predates the preset |
Global off
| Rule | Sites | Reason |
|---|---|---|
prefer-namespace-imports |
147 | Hard-codes abbreviations (Arr, P, R) with no options, so it can't be satisfied under the full-name convention shared with consumers. Candidate can't-apply. |
off in overrides
| Rule | Scope | Sites | Reason |
|---|---|---|---|
avoid-ts-ignore |
**/*.types.ts |
303 | @ts-expect-error is how type-level tests assert. Candidate can't-apply. |
avoid-ts-ignore |
src/Endpoint.ts |
20 | effect's unexported ErrorNoStream guard can't be satisfied by a generic error list. Upstream effect gap. |
no-barrel-imports |
schema tier (14 files) | 12 | The ./schema entry may resolve only effect (test/entry-points.test.ts). Candidate can't-apply. |
avoid-sync-fs |
configs, fixtures, artifact tests | 21 | Run in bare Node before any Effect runtime exists. |
avoid-node-imports |
same | 7 | same |
avoid-process-env |
same | 2 | same |
use-filesystem-service / use-path-service / use-command-executor-service |
same | 2 each | same |
use-console-service, avoid-native-fetch, effect-promise-vs-trypromise |
same | 0 | same. These overrides can be removed now. |
use-temp-file-scoped |
test/declaration-emit.test.ts |
2 | Temp directory made in beforeAll and removed in afterAll, outside any Effect scope. |
Rules not listed are already at error with zero sites.
Metadata
Metadata
Assignees
Labels
No labels
Activity
thomasfosterau commentedon Oct 30, 2026
Counts and reasons come from the #532 branch, now PR #534.
Generated by Claude Code
thomasfosterau commentedon Oct 30, 2026
Count update from #537:
test/emitted/**now leaves lint (it is type-checked against the built declarations, so type-aware lint there would depend ondist/). That removes 1effect/no-barrel-importssite (92 → 91) and 2effect/prefer-option-over-nullsites (549 → 547). No othereffect/*count changed. The new type-aware (tsgolint) remainder is tracked in #536.Generated by Claude Code
thomasfosterau commentedon Nov 7, 2026
Status from the 2026-11-07 backlog sweep: one slice done, the rest parked.
use-console-service,avoid-native-fetch,effect-promise-vs-trypromise).warntier (counts fromvp checkon trunk 6771efd):require-safety-comment-for-type-assertion782,casting-awareness629,prefer-option-over-null546,avoid-native-object-helpers347,avoid-non-null-assertion237,imperative-loops212,avoid-any143,effect-run-in-body127,no-chained-type-assertions106,no-barrel-imports91,no-unsafe-dictionary-type83,no-runtime-typeof77,use-clock-service72,avoid-direct-json70,prefer-effect-is69,avoid-untagged-errors64. Each is a multi-PR job, too big for this sweep. Working them one rule per PR, smallest first, is still the plan.Decision needed (owner): the issue lists four overrides as "candidate can't-apply". Which ones may stay, with the reason next to them in
vite.config.ts?prefer-namespace-imports(globaloff): it hard-codesArr/P/Rand has no options. Recommend: keep as can't-apply, since the full-name import convention is shared with the consumers.avoid-ts-ignorein**/*.types.ts:@ts-expect-erroris how type-level tests assert, and AGENTS.md says so. Recommend: keep as can't-apply.avoid-ts-ignoreinsrc/Endpoint.ts(20): effect doesn't export itsErrorNoStreamguard. Recommend: keep, and file upstream to have the guard exported or relaxed. I can send the draft to the orchestrator for filing if you want it.no-barrel-importsin the schema tier (12):test/entry-points.test.tspinseffectas the only external of./schema. Recommend: keep as can't-apply.If all four are accepted, the "Done" state is: the
warntier above reaches zero (exceptcasting-awareness, which stays atwarnby design per #436), plus these four overrides with their reasons.Generated by Claude Code
refactor: effect/no-runtime-typeof to zero
refactor: effect/use-clock-service to zero
refactor: effect/avoid-direct-json to zero
refactor: effect/use-clock-service to zero
refactor: effect/avoid-direct-json to zero
refactor: effect/avoid-non-null-assertion to zero
refactor: effect/avoid-non-null-assertion to zero
refactor: replace native Object helpers and Map/Set in src/ (effect/a…
refactor: replace native Object helpers and Map/Set in src/ (effect/a…
thomasfosterau commentedon Nov 12, 2026
effect/prefer-option-over-null: plan (547 sites on trunk 928131a)What the rule matches. It's purely syntactic (
@enfect/oxlint0.10.0): one report perTSUnionTypewhose direct members includenullorundefined. Things it does not flag:typeof S.Type,Schema.NullOr<…>["Type"])=== nullchecksdata: nullx?: TOption<T>The sites are mostly
undefined. 497 of the 547 are| undefined; only 38 are| nulland 12 are| null | undefined. About 200 are the?: T | undefinedoptions spelling that AGENTS.md'sexactOptionalPropertyTypesbullet prescribes. That bullet gives way to the family rule (options-object members arereadonly x?: T, with no| undefined); the bullet is rewritten in the last PR.Optionreadonly x?: T. A request type that HttpApi decodes fromSchema.optionalis derived from its schema instead.Optionreturns and optional params (Middleware.negotiate,checkQueryParameters,Lid.LidMap.id,Handlers.resolveIncluded,ApiErrordetail/source,Document.href, …)X extends Fields | undefined = undefined)neveras the sentinel,[X] extends [never]typeof X.Type).nullstays on the wire, which JSON:API requires, with no flagged site.Headers.get,URLSearchParams.get, nullable-schema matching)Option.fromNullOrat the boundaryEvery site has an honest spelling that the rule doesn't flag, so no override is needed. Aliasing (
type Absent = undefined) andvoidalso evade the rule; they are rejected as gaming it.PR split. It starts after #594, #615 and #617. The published breaks all land before the next release, so the apps migrate once.
error, the count comment is updated, and the AGENTS.md bullet is rewrittenMigration note for the apps (draft).
undefined. UnderexactOptionalPropertyTypes, omit the key instead.Option;Option.getOrUndefinedkeeps the old behaviour.never. Only explicit type arguments are affected.Generated by Claude Code
refactor: replace native Object helpers and Map/Set in src/ (effect/a…
refactor: effect/no-unsafe-dictionary-type to zero, at error (#533)
1 remaining item
refactor: effect/avoid-any and typescript/no-explicit-any to zero
refactor: effect/avoid-any and typescript/no-explicit-any to zero
refactor: effect/avoid-native-object-helpers to zero (2 of 2) (#617)
refactor: effect/avoid-any and typescript/no-explicit-any to zero (#619)
refactor: prefer-option-over-null, internal sites (1 of 6)
refactor: prefer-option-over-null, internal sites (1 of 6) (#624)
refactor!: prefer-option-over-null, Client / Conformance / Middleware…
refactor!: prefer-option-over-null, type-level sentinels undefined → …
refactor!: prefer-option-over-null, type-level sentinels undefined → …
refactor!: prefer-option-over-null, server module options and results…
refactor!: Relationship descriptor key / order are Option (#626)
refactor!: Relationship descriptor key / order are Option (#626) (#629)
refactor!: prefer-option-over-null, schema-derived wire types (5 of 6) (
refactor!: prefer-option-over-null to zero, at error (6 of 6) (#631)
docs(Assemble): viewer examples use an optional parameter and Option,…