Skip to content

Add an exception to max-len for long error messages. #50

@dmitrizagidulin

Description

@dmitrizagidulin

Developers often have the workflow - when they encounter an error, they copy it, and then paste it (either into google, github repo or org search, or as a global search in the IDE library (if they're internal devs)).

Breaking up long error messages into multiple lines prevents this workflow (the global search in the code comes up empty, which is a frustrating experience).

I propose we add an exception to the max-len line, specifically for error message literal strings (but not backticks).
(Or informally approve the usage of eslint-disable-next-line max-len in those contexts.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority 2Important but not critical

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions