Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

More intuitive configuration composition #1622

Merged
merged 6 commits into from
Nov 10, 2016
Merged

More intuitive configuration composition #1622

merged 6 commits into from
Nov 10, 2016

Conversation

adidahiya
Copy link
Contributor

Resolves #1503.

@@ -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
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

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];
Copy link
Contributor

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

@nchen63
Copy link
Contributor

nchen63 commented Nov 8, 2016

should probably get this in for 4.0 since it's breaking

@adidahiya adidahiya assigned nchen63 and unassigned jkillian Nov 8, 2016
@nchen63 nchen63 force-pushed the ad/extends-order branch 2 times, most recently from dfc718d to 06f3521 Compare November 10, 2016 19:42
Noah Chen added 2 commits November 10, 2016 15:24
… rule

Removed the failing test case in executableTests. The test doesn't add much
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants