Shared Prettier config for my projects.
npm install --save-dev @v-ed/prettier-configpackage.json
{
"prettier": "@v-ed/prettier-config"
}Take a look at Prettier's Configuration File docs to get other ways to use and extend this config.
For projects using Svelte, you can use the @v-ed/prettier-config/svelte config, which adds the plugin declaration and the overrides for *.svelte files.
package.json
{
"prettier": "@v-ed/prettier-config/svelte.cjs",
"devDependencies": {
"prettier-plugin-svelte": "*",
"svelte": "*"
}
}