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).
Common errors
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(...)).
Warnings
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.
Install
npm install gulp-9e-sass-lint yarn add gulp-9e-sass-lint pnpm add gulp-9e-sass-lint Imports
- default wrong
import sassLint from 'gulp-9e-sass-lint';correctconst sassLint = require('gulp-9e-sass-lint'); - reporter wrong
sassLint.reporter.default(options);correctsassLint.reporter('default', options); - gulp wrong
import gulp from 'gulp';correctconst gulp = require('gulp');
Quickstart
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 }));
});