Skip to content

one-dependency-per-line fixer assumes LF and will not work in a CRLF repository #58

@platinumazure

Description

@platinumazure

The fixer for one-dependency-per-line uses LF unconditionally. In order to support CRLF repositories, an option should be added to support CRLF (e.g., { lineEnding: "\r\n" }).

Without this, people using auto-fix on this rule who also have the core ESLint linebreak-style rule set to Windows will generate errors in the latter rule when applying fixes from this rule.

Incidentally, I tried to get this sort of thing (duplicated rule configuration of CRLF and similar) handled in a more general "repository settings" section of ESLint configuration, but it got shot down, so we're stuck with the duplication.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions