Skip to content

[lint] Multiple linters with unique function objects in configs fail to merge #1622

@benniekiss

Description

@benniekiss

Describe the issue

When multiple linters are configured, each with its own configuration, codemirror fails to load when the following lintConfig keys are set to unique functions: markerFilter, tooltipFilter, and hideOn.

I believe the issue is caused by the following lines due to how the function objects are compared by default.

https://github.com/codemirror/lint/blob/4f3adcfd4ed4ef6d71088f3c1cf34e7fb8f283bc/src/lint.ts#L387-L401

Browser and platform

electron, macOS 26

Reproduction link

MRE

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions