Skip to content

Commit

Permalink
Update packages and change jscs to jquery style.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrala committed Jan 5, 2016
1 parent a56efb6 commit 1da369e
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 31 deletions.
93 changes: 93 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
],
"requireOperatorBeforeLineBreak": true,
"requireParenthesesAroundIIFE": true,
"requireCommaBeforeLineBreak": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireDotNotation": {
"allExcept": ["snake_case"]
},
"requireSpacesInForStatement": true,
"requireSpaceBetweenArguments": true,
"maximumLineLength": {
"value": 100,
"tabSize": 4,
"allExcept": ["urlComments", "regex"]
},
"validateQuoteMarks": { "mark": "\"", "escape": true },

"disallowMixedSpacesAndTabs": "smart",
"disallowTrailingWhitespace": true,
"disallowMultipleLineStrings": true,
"disallowTrailingComma": true,
"disallowSpaceBeforeComma": true,
"requireSpaceAfterComma": true,

"requireSpaceBeforeBlockStatements": true,
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInsideParentheses": "all",
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"return",
"try",
"catch"
],
"requireSpacesInsideObjectBrackets": "all",
"requireSpacesInsideBrackets": true,
"requireSemicolons": true,
"requireSpacesInConditionalExpression": true,
"requireSpaceAfterBinaryOperators": true,
"requireLineFeedAtFileEnd": true,
"requireSpaceBeforeBinaryOperators": [
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
"&=", "|=", "^=", "+=",

"+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
"|", "^", "&&", "||", "===", "==", ">=",
"<=", "<", ">", "!=", "!=="
],
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requirePaddingNewLinesBeforeLineComments": true,
"requireCapitalizedComments": {
"inlined": true
},
"validateLineBreaks": "LF",

"disallowKeywords": [ "with" ],
"disallowKeywordsOnNewLine": [ "else" ],
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInNamedFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInAnonymousFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInCallExpression": true,
"disallowSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": true,
"disallowSpaceBeforePostfixUnaryOperators": true,
"disallowSpaceBeforeBinaryOperators": [ ",", ":" ],
"disallowMultipleLineBreaks": true
}
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ gulp.task('jshint', function () {

gulp.task('jscs', function () {
return gulp.src(scripts.all).
pipe(plugins.jscs('src/.jscsrc'));
pipe(plugins.jscs());
});

gulp.task('js', ['jshint', 'jscs', 'jslibs'], function () {
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"gulp-debug": "^2.1.2",
"gulp-dest": "^0.2.2",
"gulp-htmlcomb": "0.1.0",
"gulp-iconfont": "^3.0.2",
"gulp-jscs": "^2.0.0",
"gulp-jshint": "^1.11.0",
"gulp-iconfont": "^5.0.1",
"gulp-jscs": "^3.0.2",
"gulp-jshint": "^2.0.0",
"gulp-load-plugins": "^1.0.0-rc.1",
"gulp-minify-css": "^1.1.6",
"gulp-qunit": "^1.2.1",
Expand All @@ -39,7 +39,8 @@
"karma-phantomjs-launcher": "^0.2.1",
"karma-qunit": "^0.1.4",
"lodash": "^3.10.1",
"qunitjs": "^1.15.0"
"qunitjs": "^1.15.0",
"jshint": "^2.8.0"
},
"description": "Management facility for context menus. Developed for a large number of triggering objects. HTML5 Polyfill",
"keywords": [
Expand Down
26 changes: 0 additions & 26 deletions src/.jscsrc

This file was deleted.

0 comments on commit 1da369e

Please sign in to comment.