-
-
Notifications
You must be signed in to change notification settings - Fork 27
feat: Add extendable config types #210
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
Conversation
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 pull request adds new extendable interfaces for ESLint's configuration, allowing plugins to extend settings and rules.
- Added new interfaces (SettingsConfig, RulesConfig, and extended LinterOptionsConfig) in the core types.
- Updated tests to verify the new type definitions.
- Modified the eslint.config.js file to ignore test files.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
packages/core/tests/types/types.test.ts | Added tests for the new config types and sample rule configurations; note a potential typo. |
packages/core/src/types.ts | Updated type definitions to include extended interfaces for settings and rules configurations. |
eslint.config.js | Added an ignore pattern for test files to improve configuration behavior. |
Comments suppressed due to low confidence (1)
packages/core/tests/types/types.test.ts:76
- The variable 'ruelConfig5' appears to be misspelled; consider renaming it to 'ruleConfig5' for clarity.
const ruelConfig5: RuleConfig<[{ available: "widely" | "newly" }]> = [
Co-authored-by: Francesco Trotta <github@fasttime.org>
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.
LGTM, thanks! Leaving open for a second review.
@mdjermanovic can you take a look at this? |
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.
LGTM, thanks!
Prerequisites checklist
What is the purpose of this pull request?
Adds interfaces for
settings
andrules
can be extended by plugins.What changes did you make? (Give an overview)
SettingsConfig
interfaceRulesConfig
interfaceLinterOptionsConfig
interface (for completeness)Related Issues
fixes #208
Is there anything you'd like reviewers to focus on?
Just a note that once this is released, we'll need to update the
Config
type in theeslint
package.