karlspalding / sass-lint-brunch

Adds sass-lint support to brunch.
MIT License
2 stars 1 forks source link

Build Status NPM Package

sass-lint-brunch

Adds sass-lint support to brunch.

Install

npm install --save-dev sass-lint-brunch

Usage

The plugin will run automatically. Note that by default brunch ignores file names starting with an underscore.

Configuration

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.