2.0.0 • Published 2 years ago

stylelint-config-vast v2.0.0

Weekly downloads
33
License
MIT
Repository
github
Last release
2 years ago

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.

2.0.0

2 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago