laravel-elixir-stylint
v0.0.8
Published
Laravel Elixir Stylint Extension
Downloads
13
Maintainers
Readme
Laravel Elixir Stylint
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