prettier-plugin-rics
v0.3.17
Published
Prettier plugin for rics CSS preprocessor
Downloads
11
Maintainers
Readme
Prettier plugin for formatting rics files.
Installation
npm install prettier-plugin-ricsUsage
Add the plugin to your Prettier configuration:
{
"plugins": ["prettier-plugin-rics"]
}Or in .prettierrc.js:
module.exports = {
plugins: ["prettier-plugin-rics"],
};Command Line
# Format a single file
prettier --write styles.rics
# Format all rics files
prettier --write "**/*.rics"
# Check formatting
prettier --check "**/*.rics"Editor Integration
Most editors with Prettier support will automatically format .rics files once the plugin is configured.
VS Code
Install the Prettier extension and add to your workspace settings:
{
"[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 |
License
MIT
Built by Better Lyrics
