All Projects → lesshint → gulp-lesshint

lesshint / gulp-lesshint

Licence: MIT License
Lint your .less files from Gulp with lesshint.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gulp-lesshint

envoyer-npm-deployment
Compile assets that depend on node packages using Laravel Envoyer deployment hooks
Stars: ✭ 43 (+207.14%)
Mutual labels:  gulp
angular-material-boilerplate
A straightforward and well structured boilerplate based on Google's Angular Material project.
Stars: ✭ 28 (+100%)
Mutual labels:  gulp
hugo-gulp-template
Enhanced template for Hugo projects
Stars: ✭ 28 (+100%)
Mutual labels:  gulp
gulp-boilerplate
🚀 A opinionated gulp boilerplate for individuals and teams
Stars: ✭ 18 (+28.57%)
Mutual labels:  gulp
gulp-tmod
grunt-tmod gulp version
Stars: ✭ 30 (+114.29%)
Mutual labels:  gulp
Crashlyzer
Crash viewer web application for displaying the crashes reported by rn-crash-reporter components from React Native mobile applications.
Stars: ✭ 59 (+321.43%)
Mutual labels:  gulp
fly-helper
It's a Tool library, method collection
Stars: ✭ 21 (+50%)
Mutual labels:  gulp
email-framework
A simple, gulp powered framework to develop and test responsive emails.
Stars: ✭ 19 (+35.71%)
Mutual labels:  gulp
licaibao-responsive
一个响应式的理财网站,主要是为了学习响应式页面设计而制作。
Stars: ✭ 26 (+85.71%)
Mutual labels:  gulp
gulp-prestashop
Gulp prestashop build system
Stars: ✭ 14 (+0%)
Mutual labels:  gulp
sp-build-tasks
👷 SharePoint front-end projects automation and tasks tool-belt
Stars: ✭ 15 (+7.14%)
Mutual labels:  gulp
WordPress-UIkit-Starter-Theme
A WordPress starter theme for developers using the frontend framework UIkit
Stars: ✭ 55 (+292.86%)
Mutual labels:  gulp
gulp-sass
Sass plugin for gulp
Stars: ✭ 35 (+150%)
Mutual labels:  gulp
react-ssr-spa
Server side rendered single page app using reactjs official libraries.
Stars: ✭ 30 (+114.29%)
Mutual labels:  gulp
gulp-golang
gulp plugin for golang projects
Stars: ✭ 13 (-7.14%)
Mutual labels:  gulp
eadmin
eadmin - 极致用户体验与极简开发并存的开箱即用的后台UI框架
Stars: ✭ 258 (+1742.86%)
Mutual labels:  gulp
seezoon-framework-all
Seezoon快速开发平台基于spring mybatis shiro jquery 完全的前后端分离的后台管理系统,采用最简单技术,实现快速开发.
Stars: ✭ 47 (+235.71%)
Mutual labels:  gulp
impatient-jekyll
Build a website yourself. Easy to use, get a fast workflow and fast website. http://bdavidxyz.github.io/impatient-jekyll/
Stars: ✭ 22 (+57.14%)
Mutual labels:  gulp
angular-gulp-starter
Simple dev/prod build for Angular (2+) using gulp, systemjs, rollup, ngc (AOT), scss, Visual Studio
Stars: ✭ 18 (+28.57%)
Mutual labels:  gulp
n-asset-macro
Asset macro for Latte and Nette Framework for assets cache busting.
Stars: ✭ 14 (+0%)
Mutual labels:  gulp

gulp-lesshint

Build Status

Installation

npm install gulp-lesshint --save-dev

Usage

const gulp = require('gulp');
const lesshint = require('gulp-lesshint');

gulp.task('lint', () => {
    return gulp.src('./src/*.less')
        .pipe(lesshint({
            // Options
        }))
        .pipe(lesshint.reporter('reporter-name')) // Leave empty to use the default, "stylish"
        .pipe(lesshint.failOnError()) // Use this to fail the task on lint errors
        .pipe(lesshint.failOnWarning()); // Use this to fail the task on lint warnings
});

Options

  • configPath
    • Pass a path to a valid configuration file and stop lesshint from looking for a .lesshintrc file.
  • maxWarnings
    • The maximum number of warnings to allow, before failing the task. Omit this option to always allow the task to pass.

API

  • lesshint.failOnError()
    • Use this to fail the task when there are at least one lint result with a severity of error.
  • lesshint.failOnWarning()
    • Use this to fail the task when there are at least one lint result with a severity of warning.NOTE: this does not respect the maxWarnings option.

Reporters

If no reporter name is passed, the default lesshint-reporter-stylish will be used which just prints everything with different colors. If you wish to specify your own, please refer to the lesshint reporter loading steps for the exact logic.

Result

The following properties will be added to the file object.

file.lesshint.success = true; // or false
file.lesshint.resultCount = 0; // number of results returned by lesshint
file.lesshint.results = []; // lesshint results
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].