I have a single very simple project, one server.js, one read.me, one package.json and one HTML, all in the same structure. I have added the following lines in the package.json:
but when I click on “Format this file” (on any of my four files), the indent level is still 2, and quotes are all switched to double quotes. I also tried having the same line in a separate .prettierrc.json file, with the same negative result.
You need to add Prettier configuration to a file named .prettierrc in which you can add all the Prettier config as Glitch will look for this file for your Prettier config instead of the package.json. Once you create a .prettierrc file, you can add your config: