Skip to content

artursmirnov/broccoli-scss-linter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

broccoli-scss-linter

Broccoli plugin for validate .scss files.

This is a fork of broccoli-scss-lint that applies latest Broccoli changes and mutes logging for better integration.

Dependencies

  1. Ruby (Ruby 1.9.3+)
  2. scss-lint

Installation

npm install broccoli-scss-linter

Options

config

Type: String Default: ''

Specify a configuration file to use

####bundleExec Type: Boolean Default: false

format

Type: String | Array Default: Default

Output format (xml, config). If value of this option equals xml, option 'reportFile' cannot be empty. Also you can set format as array (['xml', 'default'], ['config', 'default'], ['config', 'default', 'xml']) in order to see errors in console and save result in xml file.

reportFile

Type: String Default: ''

File where will be saved report

verbose

Type: Boolean Deafult: false

Enable progress output

Examples

var scssLint = require('broccoli-scss-lint');

// Validate with custom config
files = scssLint(tree, {
  config: '.config.yml'
});
var scssLint = require('broccoli-scss-lint');

// Save xml report
files = scssLint(tree, {
  format: 'xml',
  reportFile: 'scss-lint-report.xml'
});

About

Broccoli plugin for validate .scss files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%