diff --git a/.jscs.json b/.jscs.json index 6e900d1..d75cbb4 100644 --- a/.jscs.json +++ b/.jscs.json @@ -4,10 +4,12 @@ "disallowImplicitTypeConversion": ["numeric", "boolean", "binary", "string"], "disallowKeywords": ["with", "eval"], "disallowMixedSpacesAndTabs": true, + "disallowMultiLineTernary": true, "disallowMultipleLineBreaks": true, "disallowMultipleLineStrings": true, "disallowMultipleSpaces": true, "disallowMultipleVarDecl": "strict", + "disallowNestedTernaries": true, "disallowNewlineBeforeBlockStatements": true, "disallowOperatorBeforeLineBreak": ["."], "disallowPaddingNewlinesBeforeKeywords": ["else", "case", "catch", "typeof"], @@ -22,8 +24,10 @@ "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true }, "disallowSpacesInsideArrayBrackets": true, "disallowSpacesInsideParentheses": true, + "disallowTabs": true, "disallowTrailingComma": true, "disallowTrailingWhitespace": true, + "disallowUnusedParams": true, "maximumLineLength": { "value": 85, "allowComments": true }, "requireBlocksOnNewline": 1, "requireCamelCaseOrUpperCaseIdentifiers": true, @@ -41,6 +45,7 @@ "requireParenthesesAroundIIFE": true, "requireSemicolons": true, "requireSpaceAfterBinaryOperators": true, + "requireSpaceAfterComma": true, "requireSpaceAfterKeywords": true, "requireSpaceAfterLineComment": true, "requireSpaceBeforeBinaryOperators": true, diff --git a/chai-immutable.js b/chai-immutable.js index 3078b73..fa04fb0 100644 --- a/chai-immutable.js +++ b/chai-immutable.js @@ -154,7 +154,7 @@ } function chainCollectionInclude(_super) { - return function (val) { + return function () { _super.apply(this, arguments); }; }; diff --git a/package.json b/package.json index 03ec4af..949e46d 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "coveralls": "^2.11.4", "immutable": "^3.7.5", "istanbul": "^0.4.0", - "jscs": "^2.1.1", + "jscs": "^2.5.0", "mocha": "^2.3.3", "mocha-phantomjs": "^4.0.1" }