-
-
Notifications
You must be signed in to change notification settings - Fork 763
feat(linter/plugins): add languageOptions types to RuleTester config types
#16642
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(linter/plugins): add languageOptions types to RuleTester config types
#16642
Conversation
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds comprehensive TypeScript type definitions for languageOptions to the RuleTester configuration system, aligning with ESLint's flat config API. While these options are currently ignored (similar to PR #16641), this change lays the groundwork for future RuleTester enhancements by establishing proper type contracts.
- Adds
LanguageOptionsinterface with properties forecmaVersion,sourceType,globals,parser, andparserOptions - Introduces supporting types (
SourceType,ParserOptions,EcmaFeatures,Language) with appropriate documentation - Exports all new types through the
RuleTesternamespace for external use
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d15093b to
e19cfb5
Compare
d5bf26a to
fbdd54f
Compare
e19cfb5 to
94c5679
Compare
Merge activity
|
fbdd54f to
554250e
Compare
94c5679 to
8c8b6d9
Compare
…fig types (oxc-project#16642) Add to types for `Config` and `TestCase` in `RuleTester`. Similar to oxc-project#16641, these options are currently ignored, but it prepares the way for other changes to `RuleTester` in future PRs.

Add to types for
ConfigandTestCaseinRuleTester. Similar to #16641, these options are currently ignored, but it prepares the way for other changes toRuleTesterin future PRs.