Skip to content

Fix ESLint not being able to run in worktrees#829

Draft
123mpozzi wants to merge 1 commit intodevelopmentfrom
feature/fix-eslint-not-running
Draft

Fix ESLint not being able to run in worktrees#829
123mpozzi wants to merge 1 commit intodevelopmentfrom
feature/fix-eslint-not-running

Conversation

@123mpozzi
Copy link
Contributor

@123mpozzi 123mpozzi commented Feb 12, 2026

Description

ESLint was not working properly under some conditions, like when working in git worktrees.
ESLint now resolves config locally and correctly evaluates its rules across the module.

Changes

  • Add root: true in root ESLint config (.eslintrc.js) to prevent inheriting parent ESLint configs (e.g. if running in a worktree with a parent git repo)
  • Enable @typescript-eslint/no-floating-promises as error to catch un-awaited promise calls (would have caught Fix valid FairPlay could fail due to Source not waiting for DRM initialization #828 )
    • Add TypeScript parserOptions override with so type-aware rules (like no-floating-promises) run with the correct TS runner

Checklist

  • 🗒 CHANGELOG entry - no need, dev-specific

@123mpozzi 123mpozzi self-assigned this Feb 12, 2026
@123mpozzi 123mpozzi changed the title Fix ESLint not being able to run Fix ESLint not being able to run in worktrees Feb 12, 2026
@123mpozzi 123mpozzi marked this pull request as ready for review February 12, 2026 14:13
@123mpozzi 123mpozzi requested review from rolandkakonyi and removed request for rolandkakonyi February 12, 2026 14:13
@123mpozzi 123mpozzi marked this pull request as draft February 12, 2026 14:18
@123mpozzi
Copy link
Contributor Author

Re-turning to draft since there are many violations to the new rule: no-floating-promises - I'll have to fix those before applying it

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.

1 participant