https://github.com/kevinongko/laravel-elixir-stylint
Laravel Elixir Extension to Lint Stylus based on Stylint
https://github.com/kevinongko/laravel-elixir-stylint
elixir laravel laravel-elixir-stylint linter stylint
Last synced: 3 months ago
JSON representation
Laravel Elixir Extension to Lint Stylus based on Stylint
- Host: GitHub
- URL: https://github.com/kevinongko/laravel-elixir-stylint
- Owner: kevinongko
- License: mit
- Created: 2016-11-10T13:52:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T04:22:26.000Z (almost 8 years ago)
- Last Synced: 2025-02-09T16:46:12.481Z (4 months ago)
- Topics: elixir, laravel, laravel-elixir-stylint, linter, stylint
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Elixir Stylint
[](https://www.npmjs.com/package/laravel-elixir-stylint)
[](https://www.npmjs.com/package/laravel-elixir-stylint)
[](https://www.npmjs.com/package/laravel-elixir-stylint)
[](http://opensource.org/licenses/MIT)Laravel Elixir Extension to Lint Stylus based on [Stylint](https://github.com/SimenB/stylint)
## Installation
```sh
$ npm install laravel-elixir-stylint --save-dev
```## Usage
In gulpfile.js:
```javascript
// 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();
});
```
## SourcesType: `String` or `Array`
```javascript
elixir(function(mix) {
mix.stylint([
'resources/assets/stylus/fileA.styl',
'resources/assets/stylus/fileB.styl'
]);
});
```## Options
```javascript
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 ](https://github.com/SimenB/stylint#options)
## Credits
- [gulp-stylint](https://github.com/danielhusar/gulp-stylint)
- [laravel-elixir](https://github.com/laravel/elixir)## License
Laravel Elixir Stylint is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)