Adds sass-lint support to brunch.
npm install --save-dev sass-lint-brunch
The plugin will run automatically. Note that by default brunch ignores file names starting with an underscore.
The following defaults can be overridden in brunch-config.js
:
{
...
plugins: {
sassLint: {
file: '.sass-lint.yml',
options: {
...
},
warnOnly: false
}
}
...
}
The file
field can be used to specify an alternative YAML configuration for
sass-lint
.
The options
field is passed through unchanged to sass-lint
.
If the warnOnly
field is set to true
, then linting failures will be
reported as warnings instead of errors, allowing Brunch to continue
compiling the affected source file(s) even if linting failures occur.