gulp-9e-sass-lint

raw JSON →
0.0.8 verified Fri May 01 auth: no javascript deprecated

Gulp plugin wrapping 9e-sass-lint to lint Sass/SCSS files. Stable version 0.0.8, last released 2015. No active maintenance. Key differentiator: integrates 9e-sass-lint into Gulp pipelines with reporter support. Alternatives: gulp-sass-lint (more popular, maintained).

error Error: Cannot find module 'gulp-9e-sass-lint'
cause Package not installed or named incorrectly.
fix
Run npm install gulp-9e-sass-lint --save-dev
error TypeError: sassLint is not a function
cause Incorrect import or variable name conflict.
fix
Ensure const sassLint = require('gulp-9e-sass-lint'); is correct.
error Error: SassLint reporter 'default' not found
cause Reporter option may be misconfigured or missing.
fix
Check that sassLint.reporter is called with exactly 'default' and a valid options object.
error TypeError: sassLint.reporter is not a function
cause Plugin not properly initialized; reporter called before pipe.
fix
Ensure .pipe(sassLint()) is called before .pipe(sassLint.reporter(...)).
deprecated Package is unmaintained since 2015. Consider using gulp-sass-lint instead.
fix npm install gulp-sass-lint --save-dev and replace require('gulp-9e-sass-lint') with require('gulp-sass-lint').
gotcha Requires Node >=0.4; may not work on modern Node versions.
fix Use a legacy Node version or migrate to a maintained alternative.
gotcha breakOnError option must be provided explicitly; default is false.
fix Always pass breakOnError: true if you want the task to fail on lint errors.
gotcha Does not support SCSS files by default; only .sass extension.
fix Use glob pattern **/*.sass or consider alternative plugin.
npm install gulp-9e-sass-lint
yarn add gulp-9e-sass-lint
pnpm add gulp-9e-sass-lint

Set up a Gulp task that lints Sass files using gulp-9e-sass-lint and reports errors.

const gulp = require('gulp');
const sassLint = require('gulp-9e-sass-lint');

gulp.task('lint', function() {
  return gulp.src('./stylesheets/**/*.sass')
    .pipe(sassLint())
    .pipe(sassLint.reporter('default', { breakOnError: false }));
});