Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML formatting broken #8

Open
disrupted opened this issue Apr 30, 2021 · 0 comments
Open

YAML formatting broken #8

disrupted opened this issue Apr 30, 2021 · 0 comments

Comments

@disrupted
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant