-
Notifications
You must be signed in to change notification settings - Fork 14
Not respecting prettier config #192
Comments
We have integration tests that says otherwise. Mind sharing your config? (Its path also) |
We're also using prettier's https://github.com/Shopify/theme-check-vscode/blob/main/src/formatter.ts#L57 |
Here's a PR that shows your scenario works as expected too. So something is up with how your config is being read. |
I have the same issue. I have created a .prettierrc.json file with printWidth: 800, which does not work in liquid files.
my settings.json file looks like this:
If i change the editor.defaultFormatter from Shopify.theme-check-vscode to esbenp.prettier-vscode everything works as expected. But the Shopify.theme-check-vscode is not working |
Hey @charlespwd, sorry for the delayed response and thx for looking into this. I use a
I've also tried formatting the document without a local
In case it's relevant, here's the file structure of the project.
|
Thing is... While we don't "watch for changes." It seems to be working for me? 29-50-umk8b-ipgrr.mp4 |
The shape of the icons on the sidebar tells me you're using another VS Code extension for Liquid. Are you sure that's not conflicting with Shopify.theme-check-vscode? https://marketplace.visualstudio.com/items?itemName=Shopify.theme-check-vscode Note that we respect the config files as recognized by the prettier CLI. So cosmiconfig .prettierrc/.json/etc is what we'll uphold. And like I said, you do need to reload the window. It appears that we cache the result of the config internally. |
I use an extension called Material Icon Theme that lets me customize the file icons. It shouldn't conflict with Prettier or Shopify Liquid at all. Just to be sure - I removed all my vscode settings, disabled all extensions except Prettier and Shopify Liquid, uninstalled all my global npm packages, and made sure to reload vscode. Unfortunately the issue still persists. CleanShot.2023-06-29.at.19.30.18.mp4 |
Yep, I'm facing the same problem. All the files inside a Shopify theme project are formatted without taking into consideration the Global settings nor |
Describe the bug
The
Shopify.theme-check-vscode
formatter indents with spaces even when"prettier.useTabs": true
specified.Unformatted source
Expected output
Actual output
Debugging information
v1.10.0
The text was updated successfully, but these errors were encountered: