Skip to content

Commit 5b4e93b

Browse files
committed
replace JSON linter
1 parent f8330b0 commit 5b4e93b

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

gulpfile.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
* sublimetext-gulpfile.js
33
* https://github.com/idleberg/sublimetext-gulpfile.js
44
*
5-
* Copyright (c) 2014-2016 Jan T. Sott
5+
* Copyright (c) 2014-2017 Jan T. Sott
66
* Licensed under the MIT license.
77
*/
88

99
// Dependencies
1010
var gulp = require('gulp'),
1111
debug = require('gulp-debug'),
12-
jsonlint = require('gulp-json-lint');
12+
jsonLint = require('gulp-jsonlint');
1313
ymlVal = require('gulp-yaml-validate');
1414
xmlVal = require('gulp-xml-validator');
1515

@@ -42,12 +42,7 @@ var xmlFiles = [
4242
'**/*.tmPreferences',
4343
'**/*.tmSnippet',
4444
'**/*.tmTheme',
45-
'**/*.xml',
46-
'*.bbcolors',
47-
'*.dvtcolortheme',
48-
'*.icls',
49-
'*.itermcolors',
50-
'*.terminal'
45+
'**/*.xml'
5146
];
5247

5348
var ymlFiles = [
@@ -64,7 +59,9 @@ gulp.task('lint', ['lint:json', 'lint:xml', 'lint:yml']);
6459
gulp.task('lint:json', function(){
6560
return gulp.src(jsonFiles)
6661
.pipe(debug({title: 'lint:json'}))
67-
.pipe(jsonlint())
62+
.pipe(jsonLint())
63+
.pipe(jsonLint.failAfterError())
64+
.pipe(jsonLint.reporter());
6865
});
6966

7067
// Validate XML

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "sublimetext-gulpfile.js",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"author": "Jan T. Sott",
55
"repositoy": "https://github.com/idleberg/sublimetext-gulpfile.js",
66
"license": "MIT",
77
"private": true,
88
"devDependencies": {
99
"gulp": "^3.9.1",
1010
"gulp-debug": "^2.1.2",
11-
"gulp-json-lint": "^0.1.0",
11+
"gulp-jsonlint": "^1.1.2",
1212
"gulp-xml-validator": "^0.1.1",
1313
"gulp-yaml-validate": "^1.0.2"
1414
},

0 commit comments

Comments
 (0)