LESS Linter which lints LESS files not CSS.
npm install -g less-plugin-linter
var LinterPlugin = require('less-plugin-linter');
less.render(lessString, { plugins: [
new LinterPlugin({
ignored: ['path/to/file'],
rules: {
'empty-ruleset': false,
'duplicate-property': true,
'custom-rule': require('less-plugin-lint-custom-rule')
}
})
] });
List of ignored files to skip during linting. optional, array of string, default value is empty array
Map of rule names mapped to enabled state or function, which acts as enabled. optional, object, default value is all rules enabled
- empty-ruleset
- duplicate-property