Socket
Socket
Sign inDemoInstall

stylelint-config-vast

Package Overview
Dependencies
0
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stylelint-config-vast

Stylelint shareable config for Vast's CSS coding standards


Version published
Weekly downloads
40
increased by25%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

stylelint-config-vast

Stylelint shareable config for Vast's CSS coding standards

npm version

Installation

npm install stylelint-config-vast --save-dev

Usage

Create a .stylelintrc file in the root of your project and add your settings and overrides there:

{
  "extends": "stylelint-config-vast",
  "rules": {
    "indentation": null
  },
  "ignoreFiles": "css/vendor/**/*.css",
}

Setting up stylelint

If you haven’t already set up stylelint on your project, run:

npm install stylelint --save-dev

Add "stylelint" to "scripts" in package.json (wrap globstar pattern with single quotes):

"scripts": {
    "stylelint": "stylelint 'css/**/*.css'",
}

...and then you can run:

npm run stylelint

To add a Git pre-commit hook for stylelint, run:

npm install pre-commit --save-dev

...and add this to package.json:

"pre-commit": [
  "stylelint"
]

License

MIT © 2022 Vast.com, Inc.

Keywords

FAQs

Last updated on 12 Jan 2022

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