Skip to content

Commit

Permalink
[[TEST]] Upgrade JSCS and use it for indentation checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesherov committed Feb 6, 2015
1 parent 13ae519 commit da57341
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .jscsrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"allowComments": true,
"allowRegex": true
},
// disabled due to https://github.com/jscs-dev/node-jscs/issues/915
// "validateIndentation": 2,
"validateIndentation": 2,

"disallowMultipleLineStrings": true,
"disallowMixedSpacesAndTabs": true,
Expand Down
3 changes: 1 addition & 2 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"undef": true,
"unused": true,
"onecase": true,
"lastsemic": true,
"indent": 2
"lastsemic": true
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"browserify": "6.x",
"coveralls": "2.11.x",
"istanbul": "0.3.x",
"jscs": "1.9.x",
"jscs": "1.11.x",
"jshint": "2.5.x",
"mock-stdin": "0.3.x",
"nodeunit": "0.9.x",
Expand Down
2 changes: 1 addition & 1 deletion src/jshint.js
Original file line number Diff line number Diff line change
Expand Up @@ -2062,7 +2062,7 @@ var JSHINT = (function() {
return that;
}
while (true) {
if (!(expr = expression(10))) {
if (!(expr = expression(10))) {
break;
}
that.exprs.push(expr);
Expand Down

0 comments on commit da57341

Please sign in to comment.