Grunt task that compiles LESS files and runs CSS Lint on the generated CSS, mapping errors back to the original LESS lines. Version 5.0.0 is the current stable release; the project is in maintenance mode with infrequent updates. Key differentiators: integrates CSS Lint rules with LESS source mapping for line-accurate error reporting, supports failOnWarning/failOnError options for staged rule adoption, and allows configuration of LESS parser options. Alternative tools (e.g., stylelint, lesshint) are more actively maintained.
npm install grunt-lesslintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Example Gruntfile configuration to lint LESS files with custom CSS Lint rules, LESS include paths, import linting disabled, and warnings not failing the build.
Migrate to a more modern linter like stylelint with less syntax support.
Add `imports: true` to lesslint options.
Use `failOnWarning: false` if you only want to allow warnings without failing.
Update any scripts parsing task output to expect the new format.
Set `failOnWarning: false` to allow warnings without failure, or fix the lint issues.
Run `npm install grunt-lesslint --save-dev` and ensure `grunt.loadNpmTasks('grunt-lesslint')` is in Gruntfile.Install csslint: `npm install csslint --save-dev`.