Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.
This repository was 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

Description

@callumlocke

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationRelates to ESLint's documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions