G
G
Grafnet2016-02-14 20:43:37
Sass
Grafnet, 2016-02-14 20:43:37

Gulp-scss-lint does not respond to errors. How to set up correctly?

Task:

gulp.task('scsslint', function() {
  gulp.src('/src/style/main.scss')
    .pipe(scsslint({
      'config': '.scss-lint.yml',
      'reporterOutput': 'scss-lint-report.xml',
      'colorizeOutput': true
    }));
});

There are errors in the style file regarding the config file (by sass-guidelin). At startup, the task starts and ends. The console is empty, 'scss-lint-report.xml' is missing.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VisualIdeas, 2016-02-14
@VisualIdeas

Try this simple code first:

gulp.task('stylesLint', function () {
    gulp.src('/src/style/main.scss')
        .pipe(scsslint({
            'config': 'lint.yml'
        }));
});

At the same time, the lint.yml file must be in the same folder, and for starters, let it be empty!
Do you have a config file called ".scss-lint.yml" or is the dot just an error and should it be "./scss-lint.yml"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question