Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Docs don't make it clear whether rules in overrides merge or replace the main rules object #504

Open
callumlocke opened this issue Sep 18, 2018 · 1 comment
Labels
documentation Relates to ESLint's documentation

Comments

@callumlocke
Copy link

The Configuration based on glob patterns section only shows a single rule "quotes" being set and then overridden, and (AFAICT) it's not possible to tell from this example or the accompanying text if the rules for overrides are merged into the base rules object, or if it replaces it completely. Same for env and other objects.

I know the main config merged over any extended shared configs, so I'm guessing it's the same logic for overrides merging into the main config, but it would be good to state this clearly and/or update the example so it's more obvious.

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Sep 18, 2018
@kaicataldo
Copy link
Member

Thanks for the issue. Would you mind making a new issue in the github.com/eslint/eslint repo? The documentation actually lives in that repo. Thanks!

@kaicataldo kaicataldo added documentation Relates to ESLint's documentation and removed triage An ESLint team member will look at this issue soon labels Sep 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Relates to ESLint's documentation
Projects
None yet
Development

No branches or pull requests

2 participants