4

I recently moved to Sass in a side project with Gulp. I'm used to LESS development and I'm finding hard to find some tools:

I want to keep a minimum code quality watcher in my project since we are more than one developer writting Sass (not only a linter for syntax errors)

What I'm trying to do is to set some quality code options like: maximum nesting depth, noIds, using dashes for classes...etc.

Is there any tool in Gulp for code linting?

Xaviju
  • 250
  • 4
  • 12
  • As a workaround I'm using gulp-csslint but there should be a tool for linting before compiling > https://github.com/lazd/gulp-csslint – Xaviju Apr 15 '14 at 13:52

2 Answers2

2

There was no resources for linting SCSS in gulp yet so, with the help of my colleague Juanfran, we can finally lint our sass code with this gulp-scss-linter

Gulp plugin to validate .scss files with scss-lint

Xaviju
  • 250
  • 4
  • 12
1
  1. You can use Gulp Sass Lint npm package.

  2. You can also use Sass Lint Auto Fix npm package with the above package which will fixes lint errors.