Skip to content

kevinongko/laravel-elixir-stylint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Elixir Stylint

npm npm npm npm

Laravel Elixir Extension to Lint Stylus 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

About

Laravel Elixir Extension to Lint Stylus based on Stylint

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published