1

I've got lots of imports in my main.less file, and lesslint imports/lints them all properly, but the problem is - I can't see any mapping for linting errors, so I can't understand which of less files contains the error. Is there any idea how to set it properly?

I set it like that:

    lesslint: {
      src: ['less/main.less'],
      options: {
        imports: ['less/*.less'],
      }
    }

1 Answers1

0

At https://github.com/jgable/grunt-lesslint you will find:

Generating reports

This plugin provides the same output formatter options as the CSS Lint plugin and can be configured similarly:

lesslint:
  options:
    formatters: [
      id: 'csslint-xml'
      dest: 'report/lesslint.xml'
    ]
Bass Jobsen
  • 48,736
  • 16
  • 143
  • 224