Registry / testing / sass-lint-brunch

sass-lint-brunch

JSON →
library1.1.0jsnpmunverified

sass-lint-brunch is a Brunch plugin that integrates sass-lint, a Node.js-based SCSS/SASS linter, into Brunch's build pipeline. Version 1.1.0 is the current stable release with no recent updates. It automatically lints all SCSS/SASS files during compilation, respecting Brunch's underscore-prefix ignore rule. Configuration is done via brunch-config.js, supporting custom sass-lint config files, options passthrough, and a warn-only mode to avoid breaking builds. Compared to alternatives like sass-lint-auto-fix, this plugin is minimal and focused on linting alone, with no auto-fix support.

npm install sass-lint-brunch
INSTALL
IMPORT
SIG · SASS-LINT-BRUNCH
S
sass-lint-brunch
testingjavascriptv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sassLintBrunch
import sassLintBrunch from 'sass-lint-brunch'
const sassLintBrunch = require('sass-lint-brunch')
Plugin is used via Brunch's plugin system, not imported directly.

Installs the plugin and configures sass-lint with custom rules and warnOnly mode in brunch-config.js.

npm install --save-dev sass-lint-brunch sass-lint // In brunch-config.js: module.exports = { plugins: { sassLint: { options: { rules: { 'no-ids': 2, 'no-important': 1 } }, warnOnly: false } } };
Debug
Known issues
deprecatedsass-lint is deprecated in favor of stylelint
fix
Switch to stylelint with the appropriate Brunch plugin (e.g., stylelint-brunch) and migrate your sass-lint config.
affects: >=1.0.0
gotchaBrunch ignores files starting with '_' by default; linting may not run on partial files
fix
Ensure you are not relying on linting partial files; rename them if necessary.
affects: >=1.0.0
breakingRequires Node.js >= 4, which is EOL; may fail on newer Node versions
fix
Upgrade Node.js or consider alternative tools.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'sass-lint'
sass-lint is not installed as a dependency.
fix
Run 'npm install --save-dev sass-lint' to install the peer dependency.
Plugin sassLintBrunch is not a valid plugin
Plugin not properly configured in brunch-config.js.
fix
Ensure the plugins section uses the correct key 'sassLint' as shown in the README.
Upgrade
Version history
1.1.0latest on npm
Audit
Dependencies
sass-lintrequiredCore linting functionality dependency
brunchrequiredRequired as a peer plugin for Brunch build tool
Agent activity
3 hits · last 30 days
node
2
Resources
sass-lint-brunch — npm install sass-lint-brunch · libregistry