broccoli-scss-lint

0.0.4 • Public • Published

broccoli-scss-lint

Broccoli plugin for validate .scss files

Dependencies

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

Installation

npm install broccoli-scss-lint 

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

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'
});

Release History

0.0.4 - Added option bundleExec.
0.0.3 - Bugfixes.
0.0.2 - Added opportunity set format as array, fix bugs.
0.0.1 - First release

Package Sidebar

Install

npm i broccoli-scss-lint

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • otarasiuk