Skip to content

refactor(oxlint): enable useUnknownInCatchVariables tsconfig setting#19141

Merged
graphite-app[bot] merged 1 commit intomainfrom
c/02-08-refactor_oxlint_enable_useunknownincatchvariables_tsconfig_setting
Feb 9, 2026
Merged

refactor(oxlint): enable useUnknownInCatchVariables tsconfig setting#19141
graphite-app[bot] merged 1 commit intomainfrom
c/02-08-refactor_oxlint_enable_useunknownincatchvariables_tsconfig_setting

Conversation

@camc314
Copy link
Contributor

@camc314 camc314 commented Feb 8, 2026

No description provided.

@camc314 camc314 marked this pull request as ready for review February 8, 2026 12:37
Copilot AI review requested due to automatic review settings February 8, 2026 12:37
@github-actions github-actions bot added A-linter Area - Linter A-cli Area - CLI A-linter-plugins Area - Linter JS plugins C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Feb 8, 2026
Copy link
Contributor Author

camc314 commented Feb 8, 2026


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables TypeScript’s useUnknownInCatchVariables for the oxlint app and updates a few catch blocks/call sites to satisfy the stricter typing.

Changes:

  • Enable useUnknownInCatchVariables in apps/oxlint/tsconfig.json.
  • Update test/conformance helpers to type/narrow caught errors.
  • Adjust RuleTester option-serialization error handling to compile under the new setting.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
apps/oxlint/tsconfig.json Turns on useUnknownInCatchVariables for stricter catch-variable typing.
apps/oxlint/test/utils.ts Narrows file read errors to check code safely.
apps/oxlint/test/rule_tester.test.ts Adds explicit typing/casts around captured test errors.
apps/oxlint/test/fixtures/createOnce/plugin.ts Updates fixture helper signature/cast for unknown catch variables.
apps/oxlint/src-js/package/rule_tester.ts Adjusts error formatting in JSON serialization catch path.
apps/oxlint/conformance/src/capture.ts Refactors catch handling to avoid reassigning catch variables and to normalize error type.

@graphite-app graphite-app bot changed the base branch from c/02-08-chore_all_explicitly_set_strict_false_in_tsconfigs to graphite-base/19141 February 9, 2026 09:35
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Feb 9, 2026
@camc314 camc314 self-assigned this Feb 9, 2026
Copy link
Contributor Author

camc314 commented Feb 9, 2026

Merge activity

  • Feb 9, 9:37 AM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Feb 9, 9:42 AM UTC: Graphite rebased this pull request, because this pull request is set to merge when ready.
  • Feb 9, 1:54 PM UTC: camc314 added this pull request to the Graphite merge queue.
  • Feb 9, 2:01 PM UTC: Merged by the Graphite merge queue.

@camc314 camc314 force-pushed the graphite-base/19141 branch from 36f3872 to 00d431d Compare February 9, 2026 09:41
@camc314 camc314 force-pushed the c/02-08-refactor_oxlint_enable_useunknownincatchvariables_tsconfig_setting branch from 85b05e0 to dda6e9b Compare February 9, 2026 09:41
@graphite-app graphite-app bot changed the base branch from graphite-base/19141 to main February 9, 2026 09:42
@camc314 camc314 force-pushed the c/02-08-refactor_oxlint_enable_useunknownincatchvariables_tsconfig_setting branch from dda6e9b to 1be39a7 Compare February 9, 2026 13:48
@graphite-app graphite-app bot force-pushed the c/02-08-refactor_oxlint_enable_useunknownincatchvariables_tsconfig_setting branch from 1be39a7 to d4b0324 Compare February 9, 2026 13:54
@graphite-app graphite-app bot merged commit d4b0324 into main Feb 9, 2026
19 checks passed
@graphite-app graphite-app bot deleted the c/02-08-refactor_oxlint_enable_useunknownincatchvariables_tsconfig_setting branch February 9, 2026 14:01
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Area - CLI A-linter Area - Linter A-linter-plugins Area - Linter JS plugins C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants