Prettier plugin for rics CSS preprocessor
npm install prettier-plugin-rics
Prettier plugin for formatting rics files.
``bash`
npm install prettier-plugin-rics
Add the plugin to your Prettier configuration:
`json`
{
"plugins": ["prettier-plugin-rics"]
}
Or in .prettierrc.js:
`javascript`
module.exports = {
plugins: ["prettier-plugin-rics"],
};
`bashFormat a single file
prettier --write styles.rics
Editor Integration
Most editors with Prettier support will automatically format
.rics files once the plugin is configured.$3
Install the Prettier extension and add to your workspace settings:
`json
{
"[rics]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
`Options
Standard Prettier options apply:
| Option | Default | Description |
|--------|---------|-------------|
|
tabWidth | 2 | Spaces per indentation level |
| useTabs | false | Use tabs instead of spaces |
| singleQuote | false` | Use single quotes for strings |MIT
---
Built by Better Lyrics