prettier icon indicating copy to clipboard operation
prettier copied to clipboard

[prettier-plugin-sh] Doesn't respect `prettier-ignore`

Open forivall opened this issue 3 years ago • 1 comments

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.

forivall avatar Aug 24 '20 19:08 forivall

Doesn't even respect the following syntax

-- prettier-ignore-start
SELECT * FROM .....
-- prettier-ignore-end

borgogelli avatar Mar 01 '22 14:03 borgogelli