prettier
prettier copied to clipboard
[prettier-plugin-sh] Doesn't respect `prettier-ignore`
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.
Doesn't even respect the following syntax
-- prettier-ignore-start
SELECT * FROM .....
-- prettier-ignore-end