pretty-quick icon indicating copy to clipboard operation
pretty-quick copied to clipboard

--no-resolve-config flag is not applying for liquid files

Open blanks88 opened this issue 4 years ago • 1 comments

Hey guys!, I am trying to make work the --no-resolve-config flag to apply html format to liquid files. This is my .prettierc file:

{
  "singleQuote": true,
  "printWidth": 120,
  "tabWidth": 2,
  "overrides": [
    {
      "files": "*.{liquid}",
      "options": {
        "parser": "html"
      }
    }
  ]
}

And my package.json:

  "husky": {
    "hooks": {
      "pre-commit": "pretty-quick --staged --no-resolve-config"
    }
  }

I run

git add templates/404.liquid   

I got:

husky > pre-commit (node v15.2.1)
🔍  Finding changed files since git revision b563ed5.
🎯  Found 0 changed files.
✅  Everything is awesome!

So is there something wrong?

blanks88 avatar Feb 05 '21 14:02 blanks88

Not sure to understand what's the issue.

A minimal but runnable online reproduction is required.

JounQin avatar Jan 16 '24 11:01 JounQin