-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Fix: validate schema for built-in rules #14
Conversation
@@ -484,7 +486,7 @@ class CascadingConfigArrayFactory { | |||
|
|||
// Validate rule settings and environments. | |||
const validator = new ConfigValidator({ | |||
builtInRules: configArrayFactory.builtInRules |
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.
configArrayFactory
stores builtInRules
in internalSlotsMap
, so this was undefined.
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. Nice catch @mdjermanovic
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.
Nice catch!
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.
Can we add a test for this? Maybe once #13 is merged?
Sure, but since there's no place to add the test at the moment in this repo, and this is going into today's patch release, I'd suggest we merge this as is today, and add tests in a follow-up. I tested this locally, and @btmills prepared an integration test that covers this in eslint/eslint#13794 |
I'm okay with that so long as there's an issue open to track adding the tests. |
Issue to track adding the tests: #15 |
This re-enables validating configuration for built-in rules.
eslint/eslint#13793