Skip to content

chore: adopt oxlint as lint gate #72

Closed

Description

@ElbertePlinio

No linter today (only typecheck + vitest). Node-only TS monorepo, 7 packages. Effort: S.

Agent plan

Goal: oxlint is the primary lint gate (edit loop + CI), per workspace AGENTS.md "Frontend tooling". Audit source: oxlint 1.80.0 run on this tree, 2026-08-25.

Checklist:

  • Add oxlint + .oxlintrc.json at root
  • Fix 12 baseline findings (9 no-useless-escape, 2 no-control-regex, 1 unicorn) or disable no-control-regex with justification
  • Add CI Lint step
  • lint script runs oxlint; CI "Lint" step uses it
  • Baseline is clean (fix findings or justify per-rule disables in .oxlintrc.json)
  • Add .complexity-gate.json (complexity-gate init, defaults) and complexity-gate check <src> in CI; existing FAILs are legacy — gate only changed functions via hooks, but CI baseline must be clean or explicitly allowlisted
  • PR/review

Validation:

  • bunx oxlint (or npx oxlint) exits 0 on the tree
  • complexity-gate check <src> exits 0
  • CI green

Current status: Planned
Next action: open PR

Activity

  1. ElbertePlinio commented on Aug 28, 2026

    @ElbertePlinio
    MemberAuthor

    Plan updated: added complexity-gate alongside oxlint. They are complementary — oxlint = correctness rules, complexity-gate = structural limits (complexity/depth/lines/params, supports TS/TSX/Svelte/Rust/Dart). Not either/or.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions