Skip to content

lsdsjy/prettier-plugin-stylus

Repository files navigation

prettier-plugin-stylus

Prettier plugin for Stylus.

Demo

Features

Usage

npm i prettier-plugin-stylus

Then add it to your prettierrc file, e.g.:

{
  "plugins": ["prettier-plugin-stylus"],
  "trailingComma": "all"
}

Or you can specify it in command line:

npx prettier --plugin=prettier-plugin-stylus some.styl

Contributing

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.

TODO

  • use vitest for tests
  • @font-face
  • object/hashes
  • add plugin recommendation in prettier docs
  • playground