forked from DavyJonesLocker/ember-suave
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
29 lines (22 loc) · 680 Bytes
/
index.js
File metadata and controls
29 lines (22 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* jshint node: true */
'use strict';
var JSCSFilter = require('broccoli-jscs');
module.exports = {
name: 'ember-suave',
lintTree: function(type, tree) {
var ui = this.ui;
var jscsOptions = this.app.options.jscsOptions || {};
var jscsFilter = new JSCSFilter(tree, jscsOptions);
jscsFilter.logError = function(errorText) {
ui.writeLine(errorText);
};
return jscsFilter;
},
included: function(app) {
this._super.included.apply(this, arguments);
if (app.tests) {
app.import('vendor/ember-suave/qunit-configuration.js', { type: 'test' });
app.import('vendor/ember-suave/test-loader.js', { type: 'test' });
}
}
};