Skip to content

linter: Add support for extends keyword #9307

@camchenry

Description

@camchenry

As part of supporting nested configuration files, we want to allow configuration files to extend/inherit from other files. This comes via the extends keyword in a configuration file. extends should only apply to the top-level configuration, it does not apply in overrides configurations.

Extending another configuration file will inherit any applicable properties from the other file. The order of extending matters: the file being extended is used as the base, and the file file being merged with it will override any properties depending on the context (what kind of property it is).

See https://eslint.org/docs/latest/use/configure/configuration-files-deprecated#extending-configuration-files for ESLint docs.

  • rules
  • plugins
  • overrides

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions