# prettier-plugin-stylus

> Prettier plugin for Stylus

Latest version **0.1.0** (published 2023-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install prettier-plugin-stylus
pnpm add prettier-plugin-stylus
yarn add prettier-plugin-stylus
bun add prettier-plugin-stylus
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2023-12-23 |
| First published | 2022-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 19 |
| Author | lsdsjy |
| Maintainers | lsdsjy |
| Keywords | prettier, stylus, plugin |

## Links

- npm: https://www.npmjs.com/package/prettier-plugin-stylus
- Repository: https://github.com/lsdsjy/prettier-plugin-stylus
- Issues: https://github.com/lsdsjy/prettier-plugin-stylus/issues
- npm.io page: https://npm.io/package/prettier-plugin-stylus

## Dependencies (1)

- [stylus](https://npm.io/package/stylus.md) ^0.57.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2023-12-23
- 0.0.1-beta.9 — 2023-05-29
- 0.0.1-beta.8 — 2022-08-11
- 0.0.1-beta.7 — 2022-08-10
- 0.0.1-beta.6 — 2022-08-02
- 0.0.1-beta.5 — 2022-08-01
- 0.0.1-beta.4 — 2022-07-30
- 0.0.1-beta.3 — 2022-07-02
- 0.0.1-beta.2 — 2022-07-01
- 0.0.1-beta.1 — 2022-06-08
- 0.0.1-alpha.3 — 2022-05-25
- 0.0.1-alpha.2 — 2022-05-18
- 0.0.1-alpha.1 — 2022-05-11
- 0.0.1-alpha.0 — 2022-05-05

## README

# prettier-plugin-stylus

[Prettier](https://prettier.io/) plugin for [Stylus](https://stylus-lang.com/).

![Demo](demo.png)

## Features

- Pythonic style formatting
- [Compatible with Vue.js Single-File Components](https://prettier.io/blog/2022/06/14/2.7.0.html#infer-stylus-parser-for-vue-sfc-style-block-12707httpsgithubcomprettierprettierpull12707-by-lsdsjyhttpsgithubcomlsdsjy)

## Usage

```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
```

## 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

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

---
_Source: https://npm.io/package/prettier-plugin-stylus · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
