Repository navigation
fix: lint errors quebram o build (deploys falhando) - #877
Merged
Merged
Conversation
…874) - eleicoes/candidaturas: consistent-return — re-throw do erro não-404 (antes o erro era engolido e a função retornava undefined) - holidays: prefer-template - ibge/gov: import sem extensão, === e radix no parseInt - universities: função movida antes do uso (no-use-before-define) e full_name destructured como fullName (camelcase) Esses erros quebram o lint do build (deploys falhando na Vercel). Co-authored-by: Hermes Agent <[email protected]> Ai-tool: hermes Ai-model: deepseek-v4-flash Ai-os: wsl
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…rebased pages - .prettierrc: endOfLine crlf -> lf (matches .editorconfig; crlf entered main via #863 rebase and broke EVERY deploy since 08-09 with 'Insert ␍' on every line) - pages/api/diasuteis: convert CRLF blob to LF - pages/api/ibge/cnae/v1/classes: single quotes - pages/api/universities/v1/*: prettier formatting (from #861 rebase) - services/universities.js: prettier formatting
|
lucianopf
added a commit
that referenced
this pull request
Aug 10, 2026
…E) (#881) O fix de lint do #877 trocou `==` por `===` na comparação com ESTIMATED_POPULATION_VARIABLE_ID (9324), mas o IBGE retorna o id como STRING ('9324') no JSON do agregado → `'9324' === 9324` é false → data.find retorna undefined → InternalError('Empty data') → 500 em /api/ibge/uf/v1/[code] (produção e CI). Fix: Number(item.id) === ESTIMATED_POPULATION_VARIABLE_ID. Também corrige o InternalError que recebia string em vez de objeto (message ficava vazia no JSON de erro). Co-authored-by: Hermes Agent <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Os 5 últimos deploys de produção falharam na Vercel. Entre as causas candidatas, estes erros de lint foram introduzidos pelos rebases recentes:
Todos corrigidos e validados com eslint (0 erros). Build local passa com --no-lint.