forked from SAP/ui5-inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jscs.js
31 lines (30 loc) · 752 Bytes
/
jscs.js
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
30
31
'use strict';
/**
* Make sure code styles are up to par and there are no obvious mistakes.
* @param {Object} grunt
* @param {Object} config
*/
module.exports = function (grunt, config) {
return {
options: {
config: '.jscsrc',
verbose: true, // Output with rule names
requireCurlyBraces: ['if']
},
scripts: {
files: {
src: ['<%= app %>/scripts/**/*.js']
}
},
karma: {
files: {
src: ['<%= tests %>/**/*.js', '!<%= tests %>/reports/**/*.*']
}
},
gruntfiles: {
files: {
src: ['Gruntfile.js', '<%= grunt %>/*.js']
}
}
};
};