Socket
Socket
Sign inDemoInstall

stylelint-config-standard-scss

Package Overview
Dependencies
168
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stylelint-config-standard-scss

The standard shareable SCSS config for Stylelint


Version published
Weekly downloads
1.1M
decreased by-0.65%
Maintainers
4
Install size
638 kB
Created
Weekly downloads
 

Package description

What is stylelint-config-standard-scss?

The stylelint-config-standard-scss npm package is an extension for Stylelint that provides a standard shareable config for SCSS syntax. It enforces consistent conventions and avoids errors in your stylesheets specifically tailored for SCSS. It is built on top of stylelint-config-standard and adds SCSS specific linting rules from stylelint-scss.

What are stylelint-config-standard-scss's main functionalities?

Linting SCSS Syntax

By extending stylelint-config-standard-scss in your Stylelint configuration file, you can apply a set of predefined rules that are specifically designed for linting SCSS syntax. This helps in maintaining a consistent style and avoiding common mistakes in your SCSS files.

"extends": ["stylelint-config-standard-scss"]

Customization

While stylelint-config-standard-scss provides a comprehensive set of rules out of the box, it also allows for customization. You can override or disable specific rules to tailor the linting process to your project's needs. This example shows how to disable the generic at-rule-no-unknown rule in favor of the SCSS-specific one.

{
  "extends": ["stylelint-config-standard-scss"],
  "rules": {
    "at-rule-no-unknown": null,
    "scss/at-rule-no-unknown": true
  }
}

Other packages similar to stylelint-config-standard-scss

Changelog

Source

10.0.0

  • Changed: updated to stylelint-config-recommended-scss@12.0.0.

Readme

Source

stylelint-config-standard-scss

npm version Build Status contributions welcome Downloads per month

The standard shareable SCSS config for Stylelint.

This config:

To see the rules that this config uses, please read the config itself.

Installation

npm install --save-dev stylelint-config-standard-scss

Usage

Set your stylelint config to:

{
  "extends": "stylelint-config-standard-scss"
}

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

For example, to turn off the scss/dollar-variable-pattern rule:

{
  "extends": "stylelint-config-standard-scss",
  "rules": {
    "scss/dollar-variable-pattern": null
  }
}

Changelog

License

Keywords

FAQs

Last updated on 29 Jun 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc