Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-stylelint

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-stylelint

Gulp plugin for running Stylelint results through various reporters.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28K
decreased by-0.92%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-stylelint

Build Status Code Climate

A Gulp plugin that runs stylelint results through a list of provided reporters.

Installation

npm install gulp-stylelint --save-dev

Quick start

With gulp-stylelint, it's easy to generate CSS lint reports based on stylelint results.

If you already have a .stylelintrc file in your project directory:

gulp.task('lint-css', function lintCssTask() {
  return gulp
    .src('src/**/*.css')
    .pipe(gulpStylelint({
      reporters: [
        gulpStylelintConsoleReporter()
      ]
    }));
});

Options

Below is an example with all available options provided:

gulp.task('lint-css', function lintCssTask() {
  return gulp
    .src('src/**/*.css')
    .pipe(gulpStylelint({
      stylelint: {
        extends: 'stylelint-config-suitcss'
      },
      reporters: [
        gulpStylelintConsoleReporter()
      ],
      debug: true
    }));
});
stylelint [Object]

See stylelint configuration options. When omitted, the configuration is taken from the .stylelintrc file.

reporters [Array] default: []

List of reporters. The order of execution is sequential.

debug [Boolean] default: false

When set to true, the error handler will print stack trace of errors.

License

http://opensource.org/licenses/mit-license.html

Keywords

FAQs

Package last updated on 22 Dec 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc