stylelint-config-vast

2.0.0 • Public • Published

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.

Package Sidebar

Install

npm i stylelint-config-vast

Weekly Downloads

118

Version

2.0.0

License

MIT

Unpacked Size

7.11 kB

Total Files

4

Last publish

Collaborators

  • vladimirs
  • vast