{"id":25689,"library":"gulp-bemlinter","title":"gulp-bemlinter","description":"A Gulp plugin to lint BEM component isolation in CSS/SCSS files. Version 2.0.0-beta.3, moderate release cadence. Wraps the base bemlinter package. Differentiators: specifically targets BEM methodology violations in SCSS files, integrates with Gulp task runners.","status":"active","version":"2.0.0-beta.3","language":"javascript","source_language":"en","source_url":"https://github.com/M6Web/bemlinter","tags":["javascript","bem","lint","linter","gulp","gulpbemlinter"],"install":[{"cmd":"npm install gulp-bemlinter","lang":"bash","label":"npm"},{"cmd":"yarn add gulp-bemlinter","lang":"bash","label":"yarn"},{"cmd":"pnpm add gulp-bemlinter","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core linting logic is provided by the bemlinter package","package":"bemlinter","optional":false}],"imports":[{"note":"This package is CommonJS; ESM import may require workaround.","wrong":"import bemlinter from 'gulp-bemlinter';","symbol":"gulp-bemlinter plugin (default import)","correct":"const bemlinter = require('gulp-bemlinter');"},{"note":"The plugin function is invoked directly without .init()","wrong":".pipe(bemlinter.init())","symbol":"bemlinter()","correct":".pipe(bemlinter())"},{"note":"Use .format() not .formatter()","wrong":".pipe(bemlinter.formatter())","symbol":"bemlinter.format()","correct":".pipe(bemlinter.format())"},{"note":"failOnError is a function; must be called.","wrong":".pipe(bemlinter.failOnError)","symbol":"bemlinter.failOnError()","correct":".pipe(bemlinter.failOnError())"}],"quickstart":{"code":"const gulp = require('gulp');\nconst bemlinter = require('gulp-bemlinter');\n\ngulp.task('lint', () => {\n  return gulp.src('styles/**/*.scss')\n    .pipe(bemlinter())\n    .pipe(bemlinter.format())\n    .pipe(bemlinter.failOnError());\n});\n\ngulp.task('default', gulp.series('lint'));","lang":"javascript","description":"Shows basic Gulp task using gulp-bemlinter to lint SCSS files, format results, and fail on errors."},"warnings":[{"fix":"Consider migrating to a maintained linter like stylelint","message":"gulp-bemlinter is a wrapper around the deprecated bemlinter package","severity":"deprecated","affected_versions":">=2.0.0-beta.3"},{"fix":"Pin to exact version or use 1.x","message":"Breaking changes: 2.0.0-beta versions may have unstable API","severity":"breaking","affected_versions":"2.0.0-beta.*"},{"fix":"Ensure file extensions are .scss","message":"Requires SCSS files; CSS-only files may not be analyzed correctly","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Ensure proper require: const bemlinter = require('gulp-bemlinter');","cause":"Calling bemlinter() without require correctly","error":"TypeError: bemlinter(...).pipe is not a function"},{"fix":"Run: npm install bemlinter","cause":"Missing dependency bemlinter","error":"Error: Cannot find module 'bemlinter'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}