-
Notifications
You must be signed in to change notification settings - Fork 888
More intuitive configuration composition #1622
Conversation
@@ -2,6 +2,7 @@ | |||
"rulesDirectory": ["../files/custom-rules-2", "../files/custom-rules/"], | |||
"rules": { | |||
"always-fail": true, | |||
"no-fail": true | |||
"no-fail": true, | |||
"rule-two": true |
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.
what was this for? It seems to break the tests because there is no rule-two in existence for this test
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.
removed this. Did was not hitting a unique test case
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.
actually this is needed to override another config
combinedConfig.rules[name] = config.rules[name]; | ||
// next config source overwrites the target config object | ||
for (const name of Object.keys(objectify(nextConfigSource.rules))) { | ||
combinedConfig.rules[name] = nextConfigSource.rules[name]; |
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.
please pick up changes from master and update combinedConfig.jsRules
should probably get this in for 4.0 since it's breaking |
dfc718d
to
06f3521
Compare
06f3521
to
49d8437
Compare
… rule Removed the failing test case in executableTests. The test doesn't add much
Resolves #1503.