Prettier plugin for Stylus
npm install prettier-plugin-stylus!Demo
- Pythonic style formatting
- Compatible with Vue.js Single-File Components
``sh`
npm i prettier-plugin-stylus
Then add it to your prettierrc file, e.g.:
`json`
{
"plugins": ["prettier-plugin-stylus"],
"trailingComma": "all"
}
Or you can specify it in command line:
`sh`
npx prettier --plugin=prettier-plugin-stylus some.styl
Make sure you use the right version of pnpm as specified in package.json. It is also recommended to use corepack to automatically switch to the correct version of pnpm`.
- [x] use vitest for tests
- [ ] @font-face
- [ ] object/hashes
- [ ] add plugin recommendation in prettier docs
- [ ] playground