Skip to content

YAML formatting broken #8

@disrupted

Description

@disrupted

Thanks for this cool little helper, it has made prettier much more usable/enjoyable for me.

Unfortunately YAML formatting doesn't seem to work.

file contents:

version: 2
updates:
  # Maintain dependencies for poetry
  - package-ecosystem: "pip"
    directory:  "/"
    schedule:
          interval: "daily"

Using prettier:

❯ cat .github/dependabot.yml | prettier --stdin-filepath .github/dependabot.yml
version: 2
updates:
  # Maintain dependencies for poetry
  - package-ecosystem: "pip"
    directory: "/"
    schedule:
      interval: "daily"

→ formatting applied correctly


Using prettier_d_slim:

❯ cat .github/dependabot.yml | prettier_d_slim --stdin --stdin-filepath .github/dependabot.yml
version: 2
updates:
  # Maintain dependencies for poetry
  - package-ecosystem: "pip"
    directory:  "/"
    schedule:
          interval: "daily"

→ no formatting applied

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions