Skip to content

netvlies/stylelint-config-nvs

Repository files navigation

stylelint-config-nvs

NPM version Build Status

The Netvlies shareable config for stylelint.

Installation

To make use of this config, install this package as a development dependency of your project:

npm install stylelint-config-nvs --save-dev

Usage

Create a .stylelintrc config file:

.stylelintrc

{
    "extends": "stylelint-config-nvs"
}

package.json

Or add the Stylelint config to your package.json:

{
  "name": "project",
  "stylelint": {
    "extends": "stylelint-config-nvs"
  }
}

gulpfile.js

    var gulp = require('gulp');
    var stylelint = require('gulp-stylelint');

    gulp.task('generateClientSass', function () {
        return gulp
            .src(['scss/*.scss', '!scss/vendor/*.scss'])
            .pipe(stylelint({
                syntax: 'scss',
                reporters: [
                    { formatter: 'string', console: true }
                ]
            }))
    });

Tools

Info

npm version [ major | minor | patch ]

npm publish

Changelog

Read the Changelog

License

MIT © Netvlies