@syncify/prettier-config
v0.1.0
Published
Shared prettier config
Downloads
3
Maintainers
Readme
@syncify/prettier-config
This package includes the shareable Prettier configuration that can optionally be used within Syncify projects.
Install
pnpm add prettier @syncify/prettier-config -D
Prettier is an
peerDependency
so you will need to install it within your project.
Usage
Extend configuration from within package.json
files.
{
"prettier": "@syncify/prettier-config"
}
Text Editor (VSCode)
Install the esbenp.prettier-vscode extension from the marketplace. Depending on how your editor is configured, one may require setting global configuration in a user settings.json
file:
{
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Ignored Files
Syncify does not leverage prettier for various file types because it is extremely opinionated and conflicts with code styling, especially syntax found in JavaScript and TypeScript based projects. Below is standard ignores asserted:
*.toml
*.mjs
*.js
*.ts
*.css
*.scss
*.liquid
*.html