Gulp plugin integrating lesshint, a linting tool for Less stylesheets. Version 6.1.0 (stable) is the latest release; development is active with periodic updates. Provides a stream-based pipeline for linting .less files with configurable rules, custom reporters, and fail-on-error/warning functionality. Alternatives include gulp-lesshint's direct integration vs standalone lesshint CLI, but this plugin offers seamless gulp integration without additional tooling.
npm install gulp-lesshintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a Gulp task that lints all .less files in src/, using a custom config, limiting warnings to 10, reporting with stylish reporter, and failing on errors.
Use failOnError() for error-only failures, or implement custom logic to check warnings count vs maxWarnings after pipe.
Rename config file to .lesshintrc or specify configPath option.
Ensure lesshint() is piped before reading file.lesshint.
Update lesshint to version ^3.x; check for breaking rule changes.
npm install lesshint --save-dev
Ensure you require('gulp-lesshint') and call lesshint() first: const lesshint = require('gulp-lesshint'); ... .pipe(lesshint()).pipe(lesshint.reporter('stylish'))Create a .lesshintrc file in project root or specify configPath option with absolute path.