Skip to content

[ONB-1618] Migrar ESLint a flat config sobre ESLint 10 - #104

Closed
tlarrain wants to merge 2 commits into
masterfrom
chore/migrate-eslint-flat-config
Closed

tlarrain wants to merge 2 commits into
masterfrom
chore/migrate-eslint-flat-config

Conversation

@tlarrain

@tlarrain tlarrain commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description

El setup de lint estaba pegado en ESLint 7 + airbnb-base + typescript-eslint 4, que ya no soportan las versiones actuales de ESLint ni TypeScript.

  • eslint.config.mjs con @eslint/js, typescript-eslint 8 y eslint-plugin-import-x; se elimina .eslintrc.js
  • Reglas type-aware de promesas vía projectService
  • Params sin uso y console en specs se resuelven desde la config, no con eslint-disable por archivo
  • reportUnusedDisableDirectives como error
  • Script lint:fix

Requirements

None.

Additional changes

  • El workflow linters.yml ahora se gatilla con cambios en eslint.config.mjs (antes apuntaba a un .eslintrc.json inexistente)

Tests

  • build, test y lint en verde

Created with Claude Code /fast-track command

The legacy .eslintrc.js pinned ESLint 7, typescript-eslint 4 and
airbnb-base, none of which support current ESLint or TypeScript
releases. Replace it with eslint.config.mjs built on @eslint/js,
typescript-eslint 8 and eslint-plugin-import-x, and drop airbnb-base
in favour of the recommended presets plus the few rules the codebase
actually relies on (import ordering, no-console, tsdoc syntax).

Type-aware promise rules are enabled via projectService since the SDK
is async-heavy. preserve-caught-error stays off because Error.cause is
unavailable on the supported Node 10 runtime.

Unused-parameter and spec-only console usage are now handled at the
config level (args: 'none', a src/spec override) instead of per-file
eslint-disable comments, and the directives that no longer apply
under the new preset set are removed so that
reportUnusedDisableDirectives can be enforced as an error.
The path filter listed .eslintrc.json, which never existed, so a
config-only change did not run the lint job. Point it at the new
flat config file.
@tlarrain tlarrain self-assigned this Sep 7, 2026
@tlarrain
tlarrain marked this pull request as ready for review September 7, 2026 21:00
@tlarrain tlarrain closed this Sep 7, 2026
@tlarrain
tlarrain deleted the chore/migrate-eslint-flat-config branch September 7, 2026 21:02
@tlarrain tlarrain changed the title Migrar ESLint a flat config sobre ESLint 10 [ONB-1618] Migrar ESLint a flat config sobre ESLint 10 Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant