Socket
Book a DemoInstallSign in
Socket

prettier-plugin-stylus-formatter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-stylus-formatter

Prettier plugin for Stylus

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

prettier-plugin-stylus-formatter

Prettier plugin for Stylus.

It uses stylus-supremacy formatting options and supports overwriting format rules.

Features

Usage

yarn add -D prettier-plugin-stylus-formatter

Then add it to your prettier.config.js file, e.g.:

{
    files: ["*.styl"],
    options: {
        parser: "stylus",
        plugins: [require.resolve("prettier-plugin-stylus-formatter")],
        tabWidth: 4,
        singleQuote: false,
        semi: true,
        useTabs: false,
        stylusOptions: {
            insertColons: true,
            insertSemicolons: true,
            insertBraces: true,
            ...
        },
    },
}

If you are using pnp as moduleLinker then you also have to run:

yarn unplug prettier-plugin-stylus-formatter

and in your prettier.config.js file add plugin like this:

{
    files: ["*.styl"],
    options: {
        parser: "stylus",
        plugins: [require.resolve("prettier-plugin-stylus-formatter")],
        tabWidth: 4,
        ...
    },
}

License

This project is licensed under the MIT License.

Keywords

prettier

FAQs

Package last updated on 08 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts