https://github.com/vast-engineering/stylelint-config-vast
Stylelint shareable config for Vast's CSS coding standards
https://github.com/vast-engineering/stylelint-config-vast
Last synced: about 1 year ago
JSON representation
Stylelint shareable config for Vast's CSS coding standards
- Host: GitHub
- URL: https://github.com/vast-engineering/stylelint-config-vast
- Owner: vast-engineering
- License: mit
- Created: 2016-08-08T21:13:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-01-11T20:37:28.000Z (over 4 years ago)
- Last Synced: 2024-12-22T12:30:11.657Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 8
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stylelint-config-vast
> Stylelint shareable config for Vast's CSS coding standards
[](https://www.npmjs.org/package/stylelint-config-vast)
## 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:
```javascript
{
"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):
```json
"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`:
```json
"pre-commit": [
"stylelint"
]
```
## License
[MIT](LICENSE) © 2022 Vast.com, Inc.