You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Update files: ['*.tsx'] to files: ['**/*.tsx']
Run yarn lint
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.
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?
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.
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.
Activity
satya-achanta-venkata commentedon Aug 14, 2026
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:
@eslint/compatutility, or move ESLint and@eslint/jsback to version 9 until those plugins support version 10?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.
satya-achanta-venkata commentedon Aug 28, 2026
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.