Skip to content

Commit 95a86f9

Browse files
committed
Fail build on linting error
Also bump all deps
1 parent e501475 commit 95a86f9

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

.jscsrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
},
66
"disallowQuotedKeysInObjects": true,
77
"disallowPaddingNewlinesInBlocks": true,
8+
"disallowNewlineBeforeBlockStatements": true,
89
"disallowSpacesInFunctionExpression": {
910
"beforeOpeningRoundBrace": true
1011
},

.jshintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"node": true,
33
"latedef": true,
4-
"undef": true
4+
"undef": true,
5+
"unused": true
56
}

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ var gutil = require('gulp-util');
66
var c = gutil.colors;
77
var error = gutil.PluginError;
88
var es = require('event-stream');
9-
var fs = require('fs');
109
var csslint = require('csslint').CSSLint;
1110
var RcLoader = require('rcloader');
1211

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
],
99
"dependencies": {
1010
"csslint": "^0.10.0",
11-
"event-stream": "^3.3.0",
11+
"event-stream": "^3.3.1",
1212
"gulp-util": "^3.0.4",
1313
"rcloader": "^0.1.4"
1414
},
1515
"devDependencies": {
1616
"coveralls": "^2.11.2",
17-
"istanbul": "^0.3.13",
18-
"jscs": "^1.12.0",
19-
"jshint": "^2.6.3",
20-
"mocha": "^2.2.4",
21-
"rimraf": "^2.3.2",
22-
"should": "^5.2.0"
17+
"istanbul": "^0.3.14",
18+
"jscs": "^1.13.1",
19+
"jshint": "^2.7.0",
20+
"mocha": "^2.2.5",
21+
"rimraf": "^2.3.4",
22+
"should": "^6.0.3"
2323
},
2424
"scripts": {
2525
"clean": "rimraf coverage/",
26-
"lint": "jscs index.js test/ & jshint index.js test/",
26+
"lint": "jscs index.js test/ && jshint index.js test/",
2727
"pretest": "npm run lint",
2828
"test": "mocha",
2929
"precover": "npm run lint && npm run clean",

test/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ describe('gulp-csslint', function() {
9292
var file2 = getFile('fixtures/missingPrefixes.css');
9393

9494
var stream = cssLintPlugin();
95-
stream.on('data', function(newFile) {
95+
stream.on('data', function() {
9696
++a;
9797
});
9898

0 commit comments

Comments
 (0)