Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

stylelint-restrict

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

stylelint-restrict

In the example bellow, color variables can only be defined in `styles\common\variables.scss`.

    1.0.0latest
    npm

Version published
Maintainers
1
Weekly downloads
1,155
decreased by-3.99%

Weekly downloads

Readme

Source

#Restrict usage of color variables in SASS/SCSS only to certain files

In the example bellow, color variables can only be defined in styles\common\variables.scss.

"restrict/color-variables-per-files": { files: ["styles\\common\\variables.scss"] },

IMPORTANT: This path needs to be adjusted based on OS.

FAQs

Last updated on 20 Mar 2019

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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