pre-commit-ci / issues

public issues for https://pre-commit.ci
16 stars 3 forks source link

Prettier error message - pre-commit.ci only #200

Closed csabasari closed 6 months ago

csabasari commented 6 months ago

Good evening,

We got a strange issue when the pre-commit.ci runs. Reference run linked here. Locally it runs well, however we are using some help with: export PRETTIER_LEGACY_CLI=1 .

prettier.................................................................Failed
- hook id: prettier
- exit code: 1

?25h?25h

I was try to check documentation if there is possibility to submit ENV variables during the run, but I haven't found anything related. Also checked documentation (keyword was ENV/env - 58 match, none of them relevant) and issues on pre-commit repository, but no resolution. Also checked prettier on GitHub, found this one: https://github.com/prettier/prettier/issues/15832 .

Should we wait for them to fix it, or is there a way to inject this ENV variable somehow? Thank you in advance!

asottile commented 6 months ago

dupe https://github.com/pre-commit/pre-commit/issues/2367#issuecomment-1114126040