Skip to content

Commit

Permalink
Merge pull request #245 from adobe-photoshop/jrb/bump-jscs-version
Browse files Browse the repository at this point in the history
bump jscs version
  • Loading branch information
iwehrman committed Jul 3, 2014
2 parents acc4237 + 719d24a commit ca036ca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"fileExtensions": [".js", ".jsx"],
"additionalRules": [ "node_modules/jscs-trailing-whitespace-in-source/rules/*.js" ],
"disallowTrailingWhitespaceInSource": true,
"maximumLineLength": 120,
Expand Down Expand Up @@ -81,9 +82,7 @@
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireParenthesesAroundIIFE": true,
"requireBlocksOnNewline": 1,
"requireCommaBeforeLineBreak": true,
"requireRightStickedOperators": ["!"],
"requireLeftStickedOperators": [","]
"requireCommaBeforeLineBreak": true
// "disallowSpaceAfterObjectKeys": true, ; we should pick one of these
// "requireSpaceAfterObjectKeys": true,
// "requireAlignedObjectValues": "all", ; nice to have...
Expand Down
17 changes: 10 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,21 @@ module.exports = function (grunt) {
options : {
jshintrc : ".jshintrc"
},
all : [
js : [
"*.js",
"package.json",
".jshintrc",
".jscsrc",
"lib/**/*.js",
"lib/jsx/**/*.jsx",
"test/**/*.js",
"!lib/parser.js"
],
json : [
"package.json",
".jshintrc",
".jscsrc"
]
},

jscs: {
src: "<%= jshint.all %>",
js: "<%= jshint.js %>",
options: {
config: ".jscsrc"
}
Expand All @@ -66,10 +68,11 @@ module.exports = function (grunt) {
}
}
}

});

grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-jscs-checker");
grunt.loadNpmTasks("grunt-jscs");
grunt.loadNpmTasks("grunt-contrib-nodeunit");
grunt.loadNpmTasks("grunt-peg");

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"grunt": "~0.4",
"grunt-contrib-jshint": "~0.10",
"grunt-contrib-nodeunit": "~0.3",
"grunt-jscs-checker": "^0.4.4",
"grunt-jscs": "~0.6.1",
"grunt-peg": "~1.2",
"nodeunit": "~0.8",
"pegjs": "~0.8",
Expand Down

0 comments on commit ca036ca

Please sign in to comment.