Skip to content

prettier-plugin-sh Dockerfile multi-line ENV with comments doesn't \ #398

@InsidersByte

Description

@InsidersByte

When formatting this with prettier-plugin-sh@0.14.0 it doesn't keep the \ and the indenting which ends up with the Dockerfile being invalid.

# Before

ENV a=1 \
  b=2 \
  # comment
  c=3 \
  d=4 \
  # comment
  e=5
# After

ENV a=1 \
  b=2
# comment
c=3 \
  d=4
# comment
e=5

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