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

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

Open
forivall opened this issue Aug 24, 2020 · 1 comment
Open

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

forivall opened this issue Aug 24, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed upstream

Comments

@forivall
Copy link

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 forivall changed the title Doesn't respect prettier-ignore [prettier-plugin-sh] Doesn't respect prettier-ignore Aug 24, 2020
@JounQin JounQin added the enhancement New feature or request label Aug 25, 2020
@borgogelli
Copy link

Doesn't even respect the following syntax

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

@JounQin JounQin added the help wanted Extra attention is needed label Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed upstream
Projects
None yet
Development

No branches or pull requests

3 participants