Skip to content

Windows line endings in config breaks CLI #270

Closed
@crutchcorn

Description

@crutchcorn

Expected Behavior

If you have windows line endings in your config file, things should run as normal

Current Behavior

If you run the recommended echo command on Windows, it will break things as it will output Windows Line Endings.

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Add support for windows line endings in CLI

Steps to Reproduce (for bugs)

  1. Open Windows machine
  2. Run echo "module.exports = {extends: ['@commitlint/config-angular']};" > commitlint.config.js
  3. Run commitlint

Context

Trying to setup commitlint in my project on Windows

Your Environment

Executable Version
commitlint --version 5.6.0
git --version git version 2.16.0.windows.2
node --version v8.9.1

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