A Less CSS linter for checking code quality and style consistency. Version 1.0.3 (stable, low release cadence). Integrates with Less syntax checking, offering rule-based validation. Differentiated by being one of few dedicated Less linters, though development is sparse compared to stylelint with Less plugins.
npm install lesslintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Lint a Less code string using lesslint. Demonstrates async linting with result messages.
Run 'npm install less' alongside lesslint.
Use import instead of require, or set type: "module" in package.json.
Access rules directly from linter instance or use custom configuration.
Update code to use async/await or promises.
npm install less
Change to import lesslint from 'lesslint'.
Set "type": "module" in package.json or use dynamic import().