test(linter/plugins): add types test for VisitorObject#20066
Merged
graphite-app[bot] merged 1 commit intomainfrom Mar 6, 2026
Merged
Conversation
This was referenced Mar 6, 2026
Member
Author
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a TypeScript type-level regression test around the VisitorObject typings (related to #20065), relying on the stricter TS configuration enabled in #19675.
Changes:
- Add a new
visitor.test-d.tstype assertion file forVisitorObjectassignability cases. - Add
@type-challenges/utilsas a dev dependency to express compile-time assertions. - Update
pnpm-lock.yamlto include the new dependency.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pnpm-lock.yaml | Locks @type-challenges/utils@0.1.1 for the workspace. |
| apps/oxlint/package.json | Adds @type-challenges/utils to enable type-level assertions. |
| apps/oxlint/src-js/visitor.test-d.ts | Introduces type-level cases intended to validate VisitorObject typing. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
42f72c3 to
63ddbdb
Compare
This was referenced Mar 6, 2026
4495ed1 to
e199f2d
Compare
63ddbdb to
8ee5a16
Compare
8ee5a16 to
f88a63f
Compare
e199f2d to
9904a4a
Compare
9100c63 to
cce88d5
Compare
f88a63f to
e4f3e09
Compare
cce88d5 to
a7ff967
Compare
e4f3e09 to
cd83465
Compare
This was referenced Mar 6, 2026
camc314
approved these changes
Mar 6, 2026
Contributor
Merge activity
|
a7ff967 to
e255fcd
Compare
cd83465 to
aacfef4
Compare
Base automatically changed from
02-24-chore_apps_oxlint_enable_typescript_strict_option
to
main
March 6, 2026 17:37
graphite-app bot
pushed a commit
that referenced
this pull request
Mar 9, 2026
Rename tokens type tests file to `.test-d.ts`, following the pattern set by #20066.
graphite-app bot
pushed a commit
that referenced
this pull request
Mar 9, 2026
…20155) Remove `noUnusedLocals` option from `tsconfig.json` files. It's redundant, as Oxlint `no-unused-vars` covers this for us. It's an annoyance to have `noUnusedLocals` enabled, as in VS Code TypeScript complains about unused vars, even if they're prefixed with `_`. Removing this option allows simplifying type tests added in #20066. Only reason these types had to be exported was to stop TS complaining that they were unused.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add a types test for #20065. This is a separate PR as it depends on
strict: trueTS config option added in #19675.