Skip to content

v1.17.19 - Fix ESLint timeout in large repos

Choose a tag to compare

@Tefx Tefx released this 06 Jan 15:36
· 1370 commits to Main since this release

Fixed

  • TypeScript Guard: ESLint timeout in large monorepos

    • Optimized @invar/require-schema-validation to traverse AST using visitorKeys (avoids pathological traversal)
    • Precomputes .parse() / .safeParse() arguments once per function for O(1) checks
    • Fixes real-world hangs (e.g. src/paralex/shell/actions/message.actions.ts) that triggered the 120s ESLint timeout
  • ESLint CLI: Faster file discovery

    • Prefer git ls-files for TS/TSX discovery when linting a directory
    • Avoids expensive filesystem globbing in repos with huge node_modules
  • ESLint CLI: Parser resolution

    • Prefer resolving @typescript-eslint/parser via project typescript-eslint installation when available