Skip to content

eslint-config-typescript: no-restricted-syntax rule replaces configuration in eslint-config #434

@mcmire

Description

@mcmire

If you override a rule that contains customizations, you have to include any previous customizations you've applied elsewhere. In this case, @metamask/eslint-config overrides no-restricted-syntax, but then @metamask/eslint-config-typescript overrides the override.

As a quick fix we should copy over the same selectors used in the base package into the TypeScript package. As a long-term fix, however, we should export these selectors from the base package so that if they get updated in the base package they will automatically be updated in the TypeScript package.

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