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

stylelint-config-sass-guidelines

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-config-sass-guidelines

Sharable stylelint config based on https://sass-guidelin.es/

  • 12.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created

What is stylelint-config-sass-guidelines?

stylelint-config-sass-guidelines is a shareable configuration for Stylelint that enforces the Sass Guidelines. It helps developers maintain consistent and clean Sass code by providing a set of rules and best practices.

What are stylelint-config-sass-guidelines's main functionalities?

Enforce BEM Naming Conventions

This rule enforces the Block-Element-Modifier (BEM) naming convention for class selectors, ensuring a consistent and readable structure.

module.exports = { "rules": { "selector-class-pattern": "^[a-z0-9\-]+(__[a-z0-9\-]+)?(--[a-z0-9\-]+)?$" } };

Disallow Vendor Prefixes

These rules disallow the use of vendor prefixes in properties and values, encouraging the use of autoprefixer for handling browser compatibility.

module.exports = { "rules": { "property-no-vendor-prefix": true, "value-no-vendor-prefix": true } };

Limit Nesting Depth

This rule limits the depth of nesting in Sass files to a maximum of 3 levels, promoting simpler and more maintainable code.

module.exports = { "rules": { "max-nesting-depth": 3 } };

Disallow Important

This rule disallows the use of !important in declarations, encouraging developers to find more specific and maintainable solutions.

module.exports = { "rules": { "declaration-no-important": true } };

Other packages similar to stylelint-config-sass-guidelines

Keywords

FAQs

Package last updated on 14 Sep 2024

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