Skip to content

ESLint not actively checking TS[X] files #1356

Open

Description

@daneah

Expected behavior

When ESLint runs, it is active for desired TS and TSX files

Actual behavior

ESLint is silently failing to lint these files properly

Steps to reproduce the issue

  1. Update files: ['*.tsx'] to files: ['**/*.tsx']
  2. Run yarn lint
  3. See that it fails when encountering TS files it should run against (it current has configuration errors as well)

Additional information

I uncovered this while working in GitHub Copilot on an entirely unrelated task. I worked through it a bit before finding there are a fair number of issues to fix, especially on the React side, where I felt it was better to file this issue and wait until after #856 is completed.

Activity

  1. added theissue type on Jul 25, 2026
  2. satya-achanta-venkata commented on Aug 14, 2026

    @satya-achanta-venkata
    Contributor

    While investigating #1356, I found that this is broader than changing *.ts[x] to **/*.ts[x]. The current overrides use legacy configuration properties inside a flat config, so correcting the globs first exposes configuration errors and then a substantial existing lint backlog.

    The repository currently uses ESLint 10. However, the installed React and JSX-a11y plugins only declare support through ESLint 9. This incompatibility is currently hidden because the TSX configuration does not match nested files. Once TSX linting is activated, the React plugin encounters APIs removed in ESLint 10 and crashes.

    Before implementation, I’d like to align on sequencing and scope:

    • Should we handle this before Sunset React wrappers #856 by baselining existing findings, or continue waiting for the React wrappers to be removed?
    • If we proceed now, should we retain the existing ESLint 10 version and temporarily adapt the unsupported plugins with the official @eslint/compat utility, or move ESLint and @eslint/js back to version 9 until those plugins support version 10?
    • Is the preferred migration to apply safe auto-fixes and use ESLint bulk suppressions for remaining legacy findings, so new violations fail without combining hundreds of unrelated fixes into this change?
    • Should restoring Storybook and Prettier lint configurations be included, or should ESLint not actively checking TS[X] files #1356 remain limited to TS/TSX activation?

    I believe the TurboSnap/custom-element import enforcement discussed in #1344 should be handled separately after ESLint is functioning correctly. None of these lint-tooling changes alter the published Pharos API, but activating the rules is effectively breaking for contributors because previously passing files and PRs may begin failing CI.

  3. satya-achanta-venkata commented on Aug 28, 2026

    @satya-achanta-venkata
    Contributor

    I overlooked the issue description and started triaging this. I agree with initial suggestion that lets wait working on this issue till #856 is completed.

  4. removed their assignment
    on Aug 28, 2026
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

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions