Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stylelint-prettier

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-prettier

Runs prettier as an stylelint rule

  • 5.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
549K
decreased by-24.67%
Maintainers
2
Weekly downloads
 
Created

What is stylelint-prettier?

The stylelint-prettier package integrates Prettier with Stylelint, allowing you to use Prettier as a Stylelint rule. This ensures that your styles are formatted according to Prettier's rules while also being linted by Stylelint.

What are stylelint-prettier's main functionalities?

Integrate Prettier with Stylelint

This configuration in your .stylelintrc file extends the recommended settings for integrating Prettier with Stylelint. It ensures that your styles are formatted according to Prettier's rules and also linted by Stylelint.

{
  "extends": [
    "stylelint-prettier/recommended"
  ]
}

Run Prettier as a Stylelint rule

This configuration in your .stylelintrc file sets up Prettier as a Stylelint rule. You can customize Prettier's options, such as using single quotes and adding trailing commas, directly within your Stylelint configuration.

{
  "rules": {
    "prettier/prettier": [
      true,
      {
        "singleQuote": true,
        "trailingComma": "all"
      }
    ]
  }
}

Other packages similar to stylelint-prettier

Keywords

FAQs

Package last updated on 10 Dec 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc