In that PR, I wanted to be conservative, so I only formatted a few templates (mostly EngineBlock projects), and ignored the rest.
Changes in this PR:
I changed the Prettier files pattern in package.json to more explicitly list file types to prettify. I wanted to handle this in .prettierignore initially, but ignoring all the LICENSE and favicon.ico and other patterns was tiresome.
Removed the quasar/.prettierrc file (only .prettierrc in our templates), which was breaking our Prettier config (it overrides it, which means some of our custom rules and parser/plugin definitions don't apply anymore). If we really need to have .prettierrc config files in templates in the future, we'll have to overhaul the way we format everything (probably using a custom Node script that uses the Prettier API and resolves configs).
Removed the bootstrap-5/dist folder. It looked strange to have Webpack output committed, and formatted. Will have to test that it's not breaking this template though! Edit: it does work without it.
Prettify all the templates.
Prettify Vue and Svelte components. Prettier has built-in support for Vue, and we use a plugin for Svelte.
This is a follow-up to #11.
In that PR, I wanted to be conservative, so I only formatted a few templates (mostly EngineBlock projects), and ignored the rest.
Changes in this PR:
package.json
to more explicitly list file types to prettify. I wanted to handle this in.prettierignore
initially, but ignoring all theLICENSE
andfavicon.ico
and other patterns was tiresome.quasar/.prettierrc
file (only.prettierrc
in our templates), which was breaking our Prettier config (it overrides it, which means some of our custom rules and parser/plugin definitions don't apply anymore). If we really need to have.prettierrc
config files in templates in the future, we'll have to overhaul the way we format everything (probably using a custom Node script that uses the Prettier API and resolves configs).bootstrap-5/dist
folder. It looked strange to have Webpack output committed, and formatted. Will have to test that it's not breaking this template though! Edit: it does work without it.Prettify Vue and Svelte components. Prettier has built-in support for Vue, and we use a plugin for Svelte.