laravel-elixir-stylelint-helper

1.0.2 • Public • Published

laravel-elixir-stylelint


Description

A laravel-elixir wrapper for gulp-stylelint

Linting for PHP code


Install

Install via NPM

    npm install laravel-elixir-stylelint-helper --save-dev;

Usage: stylelint()

Call the plugin in gulpfile.js with:

    require('laravel-elixir-stylelint-helper');
    mix.stylelint(source, options);

'source'

Represents the source files. This defaults to laravel-elixir's SCSS directory ['/resources/assets/sass/**/*.scss'].

'options'

Pass through an object with the options you would like merged with the defaults. Default options are

{
    failAfterError: true,
    reporters:      [
        {
            formatter: 'string',
            console:   true,
            save:      './storage/reports/stylelint/stylelint_report.txt',
        },
    ],
    debug:          true,
}
  • This packages as 'watch' enabled to monitor changes in the 'source' files



Changelog

  • 2016-09-16 Initial release

Readme

Keywords

Package Sidebar

Install

npm i laravel-elixir-stylelint-helper

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • impbob