Skip to content

[prettier-plugin-sh] Doesn't respect prettier-ignore #96

Open
@forivall

Description

@forivall

From https://prettier.io/docs/en/ignore.html :

Use “prettier-ignore” comments to ignore parts of files.

So, I expected a comment like this

#!/usr/bin/env bash

# prettier-ignore
die() { echo "$*" 1>&2 ; exit 1; }

# .. rest of script

to cause the die function to not be formatted, but, it still does get formatted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions