Skip to content

chore(quality): type the 55 no-explicit-any sites frozen under #11924 - #11975

Merged
diegosouzapw merged 1 commit into
release/v3.8.51from
fix/eslint-11924-type-the-any
Aug 29, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.51from
fix/eslint-11924-type-the-any

Conversation

@diegosouzapw

Copy link
Copy Markdown
Owner

O que muda

arquivo any como
open-sse/utils/socksConnectorWithFamily.ts 4 casts redundantes removidos — buildConnector.BuildOptions.timeout?: number | null, SocksClientOptions.timeout?: number, connect/connectTimeout já estreitam sozinhos. Comportamento igual; check:open-sse-typecheck segue nos 5 congelados
tests/unit/socks-connect-timeout.test.ts 18 mocks com os tipos reais: createConnection tipado como a estática que substitui, fake buildConnector devolve buildConnector.connector, SocksProxy, import dinâmico tipado como o módulo
tests/unit/socks-connect-timeout-e2e.test.ts 11 SocksProxy + Agent.Options; o fetch do undici já aceita dispatcher no init
tests/unit/models-db-isfree.test.ts 18 JSON de getCustomModels() estreitado para um CustomRow declarado; updateCustomModel já recebe Record<string, unknown>
tests/unit/free-models-isfree.test.ts 2 valores propositalmente errados passam por unknown, não por any
tests/unit/providerModelMutationSchema-isfree.test.ts 2 safeParse recebe unknown — cast nenhum

Entradas de supressão dos 6 arquivos removidas: 1238 → 1232 arquivos, 5487 → 5432 suprimidos (ratchet só desce).

Validação

ESLint sem o arquivo de supressões: 0 problemas nos 6 arquivos; com ele: nenhuma entrada obsoleta. check:open-sse-typecheck OK (5 pré-existentes, baseline). Suítes: 4/4, 2/2, 5/5, 4/4, 4/4.

Closes #11924

Production (open-sse/utils/socksConnectorWithFamily.ts, 4 sites): every cast was
redundant — undici's buildConnector.BuildOptions already has `timeout?: number | null`,
socks' SocksClientOptions has `timeout?: number`, and Agent.Options' `connect` /
`connectTimeout` narrow to the connector's parameter types on their own. Behaviour
unchanged; check:open-sse-typecheck stays at the frozen 5.

Tests (51 sites): the socks-timeout mocks now carry the real types — the patched
SocksClient.createConnection is typed as the static it replaces, the fake
buildConnector returns buildConnector.connector, the proxy is a SocksProxy, the
dynamic import is typed as the module it loads; the e2e suite passes a SocksProxy and
Agent.Options and no longer casts undici's fetch init (its RequestInit already has
`dispatcher`); the isFree suites narrow getCustomModels()' JSON to a declared row
shape, feed deliberately-wrong values through `unknown`, and stop casting for
zod's safeParse, which takes unknown.

The six files' suppression entries are removed: 1238 → 1232 files, 5487 → 5432
suppressed. ESLint without the suppressions file reports 0 problems on all six;
with it, no stale entry is left. The five suites pass (4, 2, 5, 4, 4).
@diegosouzapw
diegosouzapw merged commit 3b752f9 into release/v3.8.51 Aug 29, 2026
20 checks passed
@diegosouzapw
diegosouzapw deleted the fix/eslint-11924-type-the-any branch August 29, 2026 06:06
diegosouzapw added a commit to hartmark/OmniRoute that referenced this pull request Aug 29, 2026
Bring inherited Fast Quality Gates / ESLint / unit-test / docs-sync fixes from diegosouzapw#11940/diegosouzapw#11955/diegosouzapw#11975.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw added a commit to jonlwheat2-gif/OmniRoute that referenced this pull request Aug 29, 2026
Bring inherited Fast Quality Gates / ESLint / unit-test / docs-sync fixes from diegosouzapw#11940/diegosouzapw#11955/diegosouzapw#11975.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw added a commit to raheemuddin786/OmniRoute that referenced this pull request Aug 29, 2026
Bring inherited Fast Quality Gates / ESLint / unit-test / docs-sync fixes from diegosouzapw#11940/diegosouzapw#11955/diegosouzapw#11975.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw added a commit to Chewji9875/OmniRoute that referenced this pull request Aug 29, 2026
Bring inherited Fast Quality Gates / ESLint / unit-test / docs-sync fixes from diegosouzapw#11940/diegosouzapw#11955/diegosouzapw#11975.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw added a commit to KaspaPulse/omniroute-session-lease that referenced this pull request Aug 29, 2026
Bring inherited Fast Quality Gates / ESLint / unit-test / docs-sync fixes from diegosouzapw#11940/diegosouzapw#11955/diegosouzapw#11975.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw added a commit to dpozimski/OmniRoute that referenced this pull request Aug 29, 2026
Bring inherited Fast Quality Gates / ESLint / unit-test / docs-sync fixes from diegosouzapw#11940/diegosouzapw#11955/diegosouzapw#11975.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw added a commit that referenced this pull request Aug 29, 2026
Bring inherited Fast Quality Gates / ESLint / unit-test / docs-sync fixes from #11940/#11955/#11975.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw added a commit that referenced this pull request Aug 29, 2026
Bring inherited Fast Quality Gates / ESLint / unit-test / docs-sync fixes from #11940/#11955/#11975.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
diegosouzapw added a commit that referenced this pull request Aug 29, 2026
Bring inherited Fast Quality Gates / ESLint / unit-test / docs-sync fixes from #11940/#11955/#11975.

Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
muhamadgalihsaputra pushed a commit to niyatna/NiyatnaRoute that referenced this pull request Sep 27, 2026
…ouzapw#11924 (diegosouzapw#11975)

Production (open-sse/utils/socksConnectorWithFamily.ts, 4 sites): every cast was
redundant — undici's buildConnector.BuildOptions already has `timeout?: number | null`,
socks' SocksClientOptions has `timeout?: number`, and Agent.Options' `connect` /
`connectTimeout` narrow to the connector's parameter types on their own. Behaviour
unchanged; check:open-sse-typecheck stays at the frozen 5.

Tests (51 sites): the socks-timeout mocks now carry the real types — the patched
SocksClient.createConnection is typed as the static it replaces, the fake
buildConnector returns buildConnector.connector, the proxy is a SocksProxy, the
dynamic import is typed as the module it loads; the e2e suite passes a SocksProxy and
Agent.Options and no longer casts undici's fetch init (its RequestInit already has
`dispatcher`); the isFree suites narrow getCustomModels()' JSON to a declared row
shape, feed deliberately-wrong values through `unknown`, and stop casting for
zod's safeParse, which takes unknown.

The six files' suppression entries are removed: 1238 → 1232 files, 5487 → 5432
suppressed. ESLint without the suppressions file reports 0 problems on all six;
with it, no stale entry is left. The five suites pass (4, 2, 5, 4, 4).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: release/v3.8.51: 56 erros de ESLint pré-existentes (55 any em 7 arquivos + 1 unused) e supressões obsoletas (exit 2)

1 participant