Skip to content
This repository was archived by the owner on Sep 17, 2018. It is now read-only.

Commit e060f2a

Browse files
committed
add JSCS to Grunt config
1 parent fdaa428 commit e060f2a

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

Gruntfile.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,25 @@ module.exports = function(grunt) {
1313
// Project configuration.
1414
grunt.initConfig({
1515
jshint: {
16+
options: {
17+
jshintrc: '.jshintrc'
18+
},
1619
all: [
1720
'Gruntfile.js',
1821
'tasks/*.js',
1922
'<%= nodeunit.tests %>'
20-
],
23+
]
24+
},
25+
26+
jscs: {
2127
options: {
22-
jshintrc: '.jshintrc'
23-
}
28+
config: '.jscsrc'
29+
},
30+
all: [
31+
'Gruntfile.js',
32+
'tasks/*.js',
33+
'<%= nodeunit.tests %>'
34+
]
2435
},
2536

2637
// Before generating any new files, remove any previously-created files.
@@ -64,6 +75,6 @@ module.exports = function(grunt) {
6475
grunt.registerTask('test', ['clean', 'css_flip', 'nodeunit']);
6576

6677
// By default, lint and run all tests.
67-
grunt.registerTask('default', ['jshint', 'test']);
78+
grunt.registerTask('default', ['jshint', 'jscs', 'test']);
6879

6980
};

0 commit comments

Comments
 (0)