Gulp plugin for linting .less files using lesshint. Current stable version is 4.1.3. It runs the lesshint linter on source files and provides reporter and failOnError functionality for Gulp pipelines. Key differentiators: integrates smoothly with Gulp, supports custom config path, maxWarnings, and multiple reporters. Compared to other Less linters (e.g., stylelint with less syntax), it is dedicated to Less and uses lesshint's own rules.
npm install xl-gulp-lesshintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This example shows how to set up a Gulp task that lints all .less files in the src directory using a custom config file, reports errors with the stylish reporter, and fails the task on any error.
Ensure Gulp is installed and Gulp tasks are properly defined.
Explicitly pass 'stylish' or a custom reporter name.
Upgrade Node.js to version 10 or higher.
Remove any arguments passed to failOnError() call.
Run: npm install lesshint --save-dev
Run: npm install gulp-lesshint --save-dev
Use: const lesshint = require('gulp-lesshint');Install the reporter package: npm install lesshint-reporter-<name> --save-dev
Update to the latest version: npm install gulp-lesshint@latest --save-dev
Run: npm install lesshint --save-dev