Skip to content

[feature] Allow for custom messaging or remove NPM specific messaging #78

@jdfm

Description

@jdfm

Some of the error messages for this plugin specifically mention npm commands (like, no-extraneous-dependencies) which can be problematic if the established package manager in the codebase isn't npm. When dealing with a codebase maintained by a single person this isn't really a problem as that person will just know that they are using a specific package manager, but, in a codebase with a lot of developers, even if we've documented that we're using something other than npm, it can be confusing for a tool that we use say that we should use npm to fix an issue with our dependencies.

It would be very useful to either not mention npm explicitly and instead word it in a way that helps people find a solution based on their current expectations, or allow consumers of this plugin to override these messages to explicitly mention how to solve an issue with a specific toolset they have available in the codebase.

Relevant issue from upstream for more context: import-js/eslint-plugin-import#2434

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