refactor(napi/parser): freeze visitorKeys export#14012
refactor(napi/parser): freeze visitorKeys export#14012graphite-app[bot] merged 1 commit intomainfrom
visitorKeys export#14012Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds immutability to the visitorKeys export from oxc-parser by wrapping it with Object.freeze(). This follows the pattern established by TS-ESLint and enhances the API design for consumers like oxlint.
Key Changes
- Wraps the exported visitor keys object with
Object.freeze()to prevent runtime modifications
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Merge activity
|
Freeze `visitorKeys` which `oxc-parser` exports. This follows TS-ESLint, and will be useful for `oxlint`.
536a2ac to
e0be08b
Compare

Freeze
visitorKeyswhichoxc-parserexports. This follows TS-ESLint, and will be useful foroxlint.