Build: Update grunt and grunt-jscs-checker, use jquery preset for jscs

This commit is contained in:
Jörn Zaefferer 2014-01-10 16:06:55 +01:00
parent 0dc84db853
commit e15d8cc232
2 changed files with 3 additions and 26 deletions

View File

@ -1,26 +1,3 @@
{ {
"requireCurlyBraces": [ "if", "else", "for", "while", "do" ], "preset": "jquery"
"requireSpaceAfterKeywords": [ "if", "else", "for", "while", "do", "switch", "return" ],
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"requireMultipleVarDecl": true,
"requireSpacesInsideObjectBrackets": "all",
"requireSpacesInsideArrayBrackets": "all",
"disallowLeftStickedOperators": [ "?", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=" ],
"disallowRightStickedOperators": [ "?", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireRightStickedOperators": [ "!" ],
"requireLeftStickedOperators": [ "," ],
"disallowKeywords": [ "with" ],
"disallowMultipleLineBreaks": true,
"disallowKeywordsOnNewLine": [ "else" ],
"requireLineFeedAtFileEnd": true,
"disallowSpaceAfterObjectKeys": true,
"validateLineBreaks": "LF"
} }

View File

@ -56,14 +56,14 @@
}, },
"dependencies": {}, "dependencies": {},
"devDependencies": { "devDependencies": {
"grunt": "0.4.1", "grunt": "0.4.2",
"grunt-contrib-jshint": "0.7.1", "grunt-contrib-jshint": "0.7.1",
"grunt-contrib-uglify": "0.1.1", "grunt-contrib-uglify": "0.1.1",
"grunt-contrib-concat": "0.1.3", "grunt-contrib-concat": "0.1.3",
"grunt-contrib-qunit": "0.2.0", "grunt-contrib-qunit": "0.2.0",
"grunt-contrib-csslint": "0.1.1", "grunt-contrib-csslint": "0.1.1",
"grunt-compare-size": "0.4.0-rc.3", "grunt-compare-size": "0.4.0-rc.3",
"grunt-jscs-checker": "0.2.6", "grunt-jscs-checker": "0.3.1",
"grunt-html": "0.3.3", "grunt-html": "0.3.3",
"grunt-git-authors": "1.2.0", "grunt-git-authors": "1.2.0",
"grunt-esformatter": "0.2.0", "grunt-esformatter": "0.2.0",