Skip to content

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

@blanks88

Description

@blanks88

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions