Skip to content

Include default config by default in presets#2660

Merged
adamwathan merged 1 commit intomasterfrom
include-default-in-presets
Oct 23, 2020
Merged

Include default config by default in presets#2660
adamwathan merged 1 commit intomasterfrom
include-default-in-presets

Conversation

@adamwathan
Copy link
Member

Prior to this PR, if your preset omitted the presets key, it would extend nothing. I thought this made sense originally but it doesn't — it's very unexpected behavior. It means that when you take a config from a project and extract it as a preset, it no longer extends the default config, so your preset behaves differently than it would when used directly as a config.

I will backport this to 1.9 because this is so unexpected that I would consider it a bug. If you want to create a preset that extends nothing, you just needs to add presets: [] to your preset.

@adamwathan adamwathan merged commit b276085 into master Oct 23, 2020
@adamwathan adamwathan deleted the include-default-in-presets branch October 23, 2020 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant