Users' questions

Is there a gulp plugin for Sass Lint?

Is there a gulp plugin for Sass Lint?

Gulp plugin for Sass Lint. You can pass an object of options to configure gulp-sass-lint to your specific projects needs the options are listed below. You can find out more about the specific SassLint options from the SassLint Documentation

Is the include option ignored in gulp.src?

Please note that your include option will currently be ignored as you should be passing the glob patterns / file paths to be linted directly to gulp gulp.src (‘sass/**/*.s+ (a|c)ss’). The ignore option however will still be respected if you’d rather specify them in your config rather than in the gulp.src method.

Is it possible to disable the sass Lint rule?

As of sass-lint 1.10.0 it’s been possible to disable sass-lint rules via source comments Below are the different permutations of this, intentionally almost identical to the scss-lint way before. The sass-lint readme includes all of the details and the docs have been updated too.

Why does sasslint include its own configuration file?

By default SassLint includes it’s own configuration file, if you provide one it attempts to merge everything except for the files section below. If you pass options directly into the plugin they take precedence. The order can be visualised below with the SassLint config being the base.

How to format all Linted files in Gulp?

format(formatter, output) Format all linted files once. This should be used in the stream after piping through eslint; otherwise, this will find no ESLint results to format. The formatter argument may be a String, Function, or undefined.

How does the ESLint plugin work in Gulp?

If not found there, parent directories will be searched until .eslintrc is found or the directory root is reached. ESLint will ignore files that do not have a .js file extension at the point of linting ( some plugins may change file extensions mid-stream). This avoids unintentional linting of non-JavaScript files.

Which is the best way to use gulp?

Using the power of node streams, gulp gives you fast builds that don’t write intermediary files to disk. By enforcing strict guidelines, we ensure our plugins stay simple and work as expected. “Builds can be the most awful sinkhole for teams to waste their time with – gulp is a serious win for any project.”