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

stylelint-config-recommended

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-config-recommended

Recommended shareable config for Stylelint

  • 9.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.3M
decreased by-17.18%
Maintainers
4
Weekly downloads
 
Created

What is stylelint-config-recommended?

The stylelint-config-recommended package is a shareable configuration for Stylelint, a popular CSS linter. It provides a set of recommended rules to help you enforce consistent and error-free CSS code. This package includes a basic set of rules that catch common errors and enforce best practices.

What are stylelint-config-recommended's main functionalities?

Basic Configuration

This feature allows you to extend the recommended configuration in your Stylelint configuration file. By doing so, you inherit a set of predefined rules that help maintain code quality and consistency.

{
  "extends": "stylelint-config-recommended"
}

Catching Syntax Errors

This feature includes rules that catch common syntax errors such as empty blocks and invalid hex colors. These rules help prevent mistakes that could lead to broken or inconsistent styles.

{
  "rules": {
    "block-no-empty": true,
    "color-no-invalid-hex": true
  }
}

Enforcing Best Practices

This feature enforces best practices by including rules that prevent duplicate properties and font family names. These rules help ensure that your CSS is clean and maintainable.

{
  "rules": {
    "declaration-block-no-duplicate-properties": true,
    "font-family-no-duplicate-names": true
  }
}

Other packages similar to stylelint-config-recommended

Keywords

FAQs

Package last updated on 11 Aug 2022

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