Skip to content
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

Include default config by default in presets #2660

Merged
merged 1 commit into from
Oct 23, 2020

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.

None yet

1 participant