laravel-elixir-stylint

0.0.8 • Public • Published

Laravel Elixir Stylint

npm version

Laravel Elixir Stylus Lint Extension based on Stylint:

Installation

$ npm install laravel-elixir-stylint --save-dev

Usage

In gulpfile.js:

// Include Laravel Elixir
var elixir = require('laravel-elixir');
 
// Include the extension
require('laravel-elixir-stylint');
 
// Lint all files under 'stylus' folder
elixir(function(mix) {
  mix.stylint();
});

Sources

Type: String or Array

elixir(function(mix) {
  mix.stylint([
    'resources/assets/stylus/fileA.styl',
    'resources/assets/stylus/fileB.styl'
  ]);
});

Options

var options = { config: '.stylintrc' }
 
elixir(function(mix) {
  mix.stylint([
    'resources/assets/stylus/fileA.styl',
    'resources/assets/stylus/fileB.styl'
  ], options);
});

Stylint Options

Type: Object

See stylint options

Credits

License

Laravel Elixir Stylint is open-sourced software licensed under the MIT license

Package Sidebar

Install

npm i laravel-elixir-stylint

Weekly Downloads

0

Version

0.0.8

License

MIT

Last publish

Collaborators

  • kevinongko