Skip to content

chore(lint): atualiza eslint baseline 1571→1547 (F1-1.x)#107

Merged
adm01-debug merged 1 commit into
mainfrom
chore/eslint-baseline-update-2026-05-09
May 9, 2026
Merged

chore(lint): atualiza eslint baseline 1571→1547 (F1-1.x)#107
adm01-debug merged 1 commit into
mainfrom
chore/eslint-baseline-update-2026-05-09

Conversation

@adm01-debug
Copy link
Copy Markdown
Owner

@adm01-debug adm01-debug commented May 9, 2026

Plano

Atualiza .eslint-baseline.json pra refletir o estado atual do código (1547 erros) em vez do estado antigo (1571 erros).

24 erros foram eliminados naturalmente durante os PRs da Faxina F1 desta semana — o pre-push hook já vinha sugerindo: "Drift positivo: 24 erro(s) eliminado(s). Considere atualizar o baseline."

Antes vs depois

Métrica Antes Depois
Baseline 1571 erros 1547 erros
Atual 1547 erros 1547 erros
Drift -24 (positivo) 0 (alinhado)
Gate CI Permitia até 1571 Permite até 1547
Arquivos com violações 615

Por que isso importa

O baseline funciona como teto rolling: o CI não falha se o número TOTAL de erros não exceder o baseline. Se o baseline for maior que o atual, ele permite regressões silenciosas (alguém adiciona 24 erros novos sem o CI reclamar — pq ainda não chega em 1571).

Atualizar trava o ganho desta semana e força os próximos PRs a manter ou melhorar.

Diff

.eslint-baseline.json | 2073 linhas (regenerado)
1 file changed

Risk

🟢 Zero. O baseline só fica MAIS rigoroso — torna o gate menor, não maior. Não pode quebrar nada que já funcionava, só pode prevenir novas regressões.

Test plan

  • npm run lint:baseline:update (regenerou OK)
  • npm run lint:baseline (gate passa: atual=baseline=1547)
  • CI verde
  • CodeRabbit revisão

Summary by CodeRabbit

Notas de Lançamento

  • Chores
    • Atualizada configuração de baseline de linting com ajustes nas contagens de erros de regras e organização de arquivos.

Nota: Esta versão contém apenas alterações internas de manutenção sem impacto direto nas funcionalidades visíveis ao usuário final.

Review Change Stack

24 erros eliminados nos PRs da Faxina F1 desta semana (Onda 1, #103, #104,
#99, etc) que entraram em main como drift positivo. O `pre-push` hook já
sugeria "Considere atualizar o baseline" desde a Onda 1.

**Antes:**
- baseline: 1571 erros
- atual:    1547 erros (drift positivo de -24)

**Depois:**
- baseline: 1547 erros (congelados)
- atual:    1547 erros (sem drift, sem regressão)

**Distribuição dos 1547 erros congelados:**
- 615 arquivos com pelo menos 1 violação ignorada
- Maiores ofensores continuam sendo no-unused-vars, no-explicit-any,
  no-undef, eqeqeq (mesmas categorias mapeadas no relatório de auditoria
  — elas serão atacadas em PRs futuros da Fase 6)

**Risk**: 🟢 zero. Apenas reduz o teto que o CI permite — torna o gate
mais rigoroso, não menos. Qualquer regressão futura de lint vai falhar mais cedo.

**Test plan**:
- [x] `npm run lint:baseline:update` (regenerou)
- [x] `npm run lint:baseline` (gate passa: atual=baseline=1547)
- [ ] CI verde
- [ ] CodeRabbit OK
Copilot AI review requested due to automatic review settings May 9, 2026 15:29
@vercel
Copy link
Copy Markdown

vercel Bot commented May 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
promo-gifts Ready Ready Preview, Comment May 9, 2026 3:30pm

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 9, 2026

Walkthrough

Atualização do baseline de linting refletindo redução de 24 erros (1571 → 1547). Dois arquivos adicionados, sete removidos, e melhorias em arquivo existente. Timestamp atualizado para 2026-05-09.

Changes

Atualização de Baseline de Linting

Layer / Arquivo(s) Resumo
Metadados e Totalizadores
.eslint-baseline.json
Timestamp avançado para 2026-05-09T15:27:09.984Z; totalErrors reduzido de 1571 para 1547 (Δ -24 erros).
Arquivos Adicionados
.eslint-baseline.json
src/components/compare/SyncedZoomGallery.tsx adicionado com 1 erro no-undef; src/components/onboarding/OnboardingTour.tsx adicionado com 1 erro @typescript-eslint/no-unused-vars.
Arquivos Removidos
.eslint-baseline.json
Sete arquivos removidos do baseline: src/components/dashboard/MyPendingOrdersWidget.tsx, src/components/orders/OrderCard.tsx, src/components/quotes/QuoteConvertToOrder.tsx, src/components/product-registration/BulkImportPanel.tsx, src/components/product-registration/BulkImportSteps.tsx, src/hooks/useBulkImportFile.ts, src/pages/OrderDetailPage.tsx.
Arquivos Atualizados
.eslint-baseline.json
src/pages/ComparePage.tsx teve contagem de @typescript-eslint/no-unused-vars reduzida.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related issues

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed O título descreve com precisão a alteração principal: atualização do eslint baseline reduzindo erros de 1571 para 1547.
Description check ✅ Passed A descrição cobre os pontos essenciais (plano, antes/depois, justificativa, teste local), mas não segue exatamente a template do repositório (faltam seções estruturadas como 'Tipo de mudança', 'Checklist' formal).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/eslint-baseline-update-2026-05-09

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s ESLint baseline file to match the current lint error total (1547), tightening the CI “lint baseline” gate to prevent silent regressions as code gets cleaned up.

Changes:

  • Regenerated .eslint-baseline.json with an updated generatedAt timestamp.
  • Lowered totalErrors from 1571 → 1547 and updated per-file/rule counts accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.eslint-baseline.json (1)

944-946: 🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick win

Arquivo novo com 5 variáveis não utilizadas adicionado ao baseline

OnboardingTour.tsx está sendo adicionado com 5 violações @typescript-eslint/no-unused-vars. Embora menos crítico que no-undef, ainda é questionável adicionar código novo com violações ao baseline.

Recomendação: Limpar as variáveis não utilizadas neste arquivo antes de finalizar a atualização do baseline para manter a consistência com o objetivo da Faxina F1.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.eslint-baseline.json around lines 944 - 946, The new OnboardingTour
component is added with five `@typescript-eslint/no-unused-vars` violations; fix
this by opening src/components/onboarding/OnboardingTour.tsx, identify the
unused variables (e.g., any unused props, state variables, helper functions or
imported symbols) and either remove them, use them appropriately, or rename them
with a leading underscore if intentionally unused; avoid adding exceptions to
the baseline—ensure functions/classes like OnboardingTour and any unused imports
are cleaned so the file has no `@typescript-eslint/no-unused-vars` violations
before updating the baseline.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In @.eslint-baseline.json:
- Around line 944-946: The new OnboardingTour component is added with five
`@typescript-eslint/no-unused-vars` violations; fix this by opening
src/components/onboarding/OnboardingTour.tsx, identify the unused variables
(e.g., any unused props, state variables, helper functions or imported symbols)
and either remove them, use them appropriately, or rename them with a leading
underscore if intentionally unused; avoid adding exceptions to the
baseline—ensure functions/classes like OnboardingTour and any unused imports are
cleaned so the file has no `@typescript-eslint/no-unused-vars` violations before
updating the baseline.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 88bc0659-c448-4cb7-ab24-12d024da5f20

📥 Commits

Reviewing files that changed from the base of the PR and between 87f164f and 829c3ef.

📒 Files selected for processing (1)
  • .eslint-baseline.json

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.

2 participants