Add support for jscs style checker.
Showing
3 changed files
with
12 additions
and
0 deletions
... | @@ -31,6 +31,11 @@ module.exports = function(grunt) { | ... | @@ -31,6 +31,11 @@ module.exports = function(grunt) { |
31 | browserOptions: { | 31 | browserOptions: { |
32 | }, | 32 | }, |
33 | }; | 33 | }; |
34 | config.jscs = { | ||
35 | options: { | ||
36 | validateIndentation: 4, | ||
37 | }, | ||
38 | }; | ||
34 | 39 | ||
35 | var montyPython = require('./grunt-monty-python')(grunt); | 40 | var montyPython = require('./grunt-monty-python')(grunt); |
36 | montyPython.createConfig(config); | 41 | montyPython.createConfig(config); | ... | ... |
... | @@ -265,6 +265,12 @@ module.exports = function (grunt) { | ... | @@ -265,6 +265,12 @@ module.exports = function (grunt) { |
265 | null, | 265 | null, |
266 | null | 266 | null |
267 | ); | 267 | ); |
268 | createJschecker( | ||
269 | 'jscs', | ||
270 | null, | ||
271 | null, | ||
272 | null | ||
273 | ); | ||
268 | if (mpConfig.csslint) { | 274 | if (mpConfig.csslint) { |
269 | initConfig.csslint = { | 275 | initConfig.csslint = { |
270 | }; | 276 | }; | ... | ... |
... | @@ -26,6 +26,7 @@ | ... | @@ -26,6 +26,7 @@ |
26 | "grunt-contrib-imagemin": "~0", | 26 | "grunt-contrib-imagemin": "~0", |
27 | "grunt-contrib-requirejs": "~0", | 27 | "grunt-contrib-requirejs": "~0", |
28 | "grunt-contrib-uglify": "~0", | 28 | "grunt-contrib-uglify": "~0", |
29 | "grunt-jscs": "", | ||
29 | "grunt-rev": "~0", | 30 | "grunt-rev": "~0", |
30 | "grunt-svgmin": "~0", | 31 | "grunt-svgmin": "~0", |
31 | "grunt-usemin": "~2", | 32 | "grunt-usemin": "~2", | ... | ... |
-
Please register or sign in to post a comment