{"id":25028,"library":"broccoli-scss-linter","title":"broccoli-scss-linter","description":"Broccoli plugin that integrates sass-lint for linting SCSS/SASS files in Broccoli build pipelines. Version 3.1.0 is the latest, targeting Node ≥0.10.0. It wraps sass-lint, providing a config option for custom lint rules. Limited maintenance; the underlying sass-lint has been deprecated in favor of stylelint with SCSS plugin. Use this only for legacy Broccoli projects stuck on sass-lint.","status":"maintenance","version":"3.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/artursmirnov/broccoli-scss-lint","tags":["javascript","broccoli-plugin","broccoli-lint","broccoli-sass","broccoli-scss","sass-lint","scss-lint","sass","scss"],"install":[{"cmd":"npm install broccoli-scss-linter","lang":"bash","label":"npm"},{"cmd":"yarn add broccoli-scss-linter","lang":"bash","label":"yarn"},{"cmd":"pnpm add broccoli-scss-linter","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core linting engine; provides all lint rules and configuration parsing.","package":"sass-lint","optional":false},{"reason":"Used internally for caching and incremental builds.","package":"broccoli-persistent-filter","optional":false}],"imports":[{"note":"Package is CommonJS-only; ESM import not supported. Use require().","wrong":"import ScssLinter from 'broccoli-scss-linter';","symbol":"default","correct":"var ScssLinter = require('broccoli-scss-linter');"},{"note":"Constructor expects an array of input nodes (or a single node wrapped in array). Passing a single node without array causes runtime error.","wrong":"new ScssLinter(inputNode);","symbol":"ScssLinter","correct":"var ScssLinter = require('broccoli-scss-linter'); new ScssLinter(inputNodes, options);"},{"note":"The module exports the class directly (not as named export). Accessing .ScssLinter yields undefined.","wrong":"var ScssLinter = require('broccoli-scss-linter').ScssLinter;","symbol":"ScssLinter","correct":"var ScssLinter = require('broccoli-scss-linter').default;"}],"quickstart":{"code":"var ScssLinter = require('broccoli-scss-linter');\nvar funnel = require('broccoli-funnel');\n\n// Assuming 'app/styles' contains .scss files\nvar linted = new ScssLinter(['app/styles'], {\n  config: '.scss-lint.yml' // optional custom config\n});\n\n// Merge with other trees\nvar merge = require('broccoli-merge-trees');\nmodule.exports = merge([linted, otherTrees]);\n","lang":"javascript","description":"Shows basic usage: create a ScssLinter instance for a directory, optionally with a config file, and integrate into Broccoli pipeline."},"warnings":[{"fix":"Wrap the input node in an array: new ScssLinter([inputNode], options)","message":"Constructor expects an array of input nodes. Passing a single node (not wrapped in array) will throw: 'Expected an array of nodes'","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Migrate to stylelint with @stylelint/postcss-css-in-js or similar for Broccoli.","message":"sass-lint is deprecated in favor of stylelint with scss plugin. This package wraps sass-lint and will not receive updates.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use CommonJS require() instead of ES import.","message":"The package does not support ESM imports; using import will fail.","severity":"gotcha","affected_versions":">=0.0.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 sass-lint --save-dev","cause":"sass-lint is a peer dependency not automatically installed via npm install.","error":"Error: Cannot find module 'sass-lint'"},{"fix":"Use require('broccoli-scss-linter') (CommonJS) and ensure to use new keyword.","cause":"Using default import (ESM) or incorrect require path.","error":"TypeError: ScssLinter is not a constructor"},{"fix":"Provide absolute or relative path from the project root; ensure file exists.","cause":"The config option points to a file that does not exist or is not relative to the project root.","error":"Configuration file '.scss-lint.yml' not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}