Skip to content

Commit 30e7abd

Browse files
committed
improve(jshint): updated stylish plugin to customize colors
1 parent 1708b09 commit 30e7abd

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

.stylishcolors

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"meta": "yellow",
3+
"reason": "blue",
4+
"verbose": "gray",
5+
"error": "red",
6+
"noproblem": "green"
7+
}

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ var fnLint = function (path, exitOnError) {
8989
return gulp.src(path, { base: config.app })
9090
.pipe(plugins.plumber())
9191
.pipe(plugins.jshint())
92-
.pipe(plugins.jshint.reporter('jshint-stylish'))
92+
.pipe(plugins.jshint.reporter('jshint-stylish-ex'))
9393
.pipe(map(function (file, cb) {
9494
if (!file.jshint.success && exitOnError) {
9595
process.exit(1);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"gulp-size": "^0.3.0",
3636
"gulp-uglify": "^0.2.1",
3737
"gulp-util": "^2.2.14",
38-
"jshint-stylish": "^0.1.5",
38+
"jshint-stylish-ex": "^0.2.0",
3939
"karma": "^0.12.5",
4040
"karma-chrome-launcher": "^0.1.3",
4141
"karma-coffee-preprocessor": "^0.2.1",

0 commit comments

Comments
 (0)