{"id":25026,"library":"broccoli-sass-lint","title":"broccoli-sass-lint","description":"A Broccoli plugin that provides pure Node.js scss/sass linting using sass-lint. Version 1.1.2 is the latest stable release with infrequent updates. It integrates seamlessly into Broccoli build pipelines, offering options for configuration, error handling, logging, custom test generation, and support for persistent filtering. Unlike CLI-based linters, this package is designed specifically for Broccoli-based projects.","status":"maintenance","version":"1.1.2","language":"javascript","source_language":"en","source_url":"https://github.com/sir-dunxalot/broccoli-sass-lint","tags":["javascript","broccoli-plugin","broccoli","sass","scss","lint","sass-lint"],"install":[{"cmd":"npm install broccoli-sass-lint","lang":"bash","label":"npm"},{"cmd":"yarn add broccoli-sass-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add broccoli-sass-lint","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core linting engine for SCSS/SASS files","package":"sass-lint","optional":false},{"reason":"Used for persistent caching of lint results across builds","package":"broccoli-persistent-filter","optional":true}],"imports":[{"note":"Package is CJS only, no ESM exports","wrong":"import SassLinter from 'broccoli-sass-lint';","symbol":"SassLinter","correct":"const SassLinter = require('broccoli-sass-lint');"},{"note":"Default export, not named export","wrong":"import { SassLinter } from 'broccoli-sass-lint';","symbol":"SassLinter","correct":"var SassLinter = require('broccoli-sass-lint');"},{"note":"Do not destructure default, it's a constructor","wrong":"const { default: SassLinter } = require('broccoli-sass-lint');","symbol":"SassLinter","correct":"const SassLinter = require('broccoli-sass-lint');"}],"quickstart":{"code":"const SassLinter = require('broccoli-sass-lint');\n\nconst linter = new SassLinter('app/styles', {\n  configPath: '.sass-lint.yml',\n  shouldThrowExceptions: true,\n  shouldLog: true,\n});\n\n// In a Brocfile.js, export linter or use with broccoli mergeTrees\nconst broccoli = require('broccoli');\nconst tree = linter; // or merge with other trees\n\nmodule.exports = tree;","lang":"javascript","description":"Shows how to instantiate the linter with options and integrate into a Broccoli build"},"warnings":[{"fix":"Migrate to stylelint-config-standard-scss and broccoli-stylelint","message":"sass-lint package is deprecated; consider using stylelint with scss plugin instead","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Set shouldThrowExceptions: true to ensure errors break the build","message":"If shouldThrowExceptions is false, errors will not stop the build, which may lead to uncaught lint errors","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use new SassLinter(inputTree, options) instead of new SassLinter(options)","message":"In version 1.1.0, the constructor API changed from accepting options as first argument to accepting input tree and options","severity":"breaking","affected_versions":">=1.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run npm install --save-dev sass-lint","cause":"Missing sass-lint as a dependency","error":"Error: Cannot find module 'sass-lint'"},{"fix":"Use const SassLinter = require('broccoli-sass-lint');","cause":"Using import instead of require, or incorrectly destructuring","error":"TypeError: SassLinter is not a constructor"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}