Skip to content

Commit

Permalink
Bump JSCS to ^2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cvrebert committed Oct 1, 2015
1 parent 622bd56 commit c5bf416
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
23 changes: 10 additions & 13 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
{
"disallowEmptyBlocks": true,
"disallowKeywords": ["with"],
"disallowMixedSpacesAndTabs": true,
"disallowMultipleLineStrings": true,
"disallowMultipleSpaces": true,
"disallowMultipleVarDecl": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforeComma": true,
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpaceBeforeSemicolon": true,
"disallowSpacesInCallExpression": true,
"disallowSpacesInsideBrackets": true,
"disallowTabs": true,
"disallowTrailingWhitespace": true,
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "case", "default"],
"requireLineFeedAtFileEnd": true,
"requireNumericLiterals": true,
"requireObjectKeysOnNewLine": true,
"requireOperatorBeforeLineBreak": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
"requireParenthesesAroundIIFE": true,
"requireSemicolons": true,
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", "<", ">=", "<="],
"requireSpacesInConditionalExpression": true,
"requireSpacesInFunctionExpression": { "beforeOpeningCurlyBrace": true },
"requireSpacesInForStatement": true,
"requireSpread": true,
"validateIndentation": 4,
"validateLineBreaks": "LF",
"validateParameterSeparator": ", ",
"plugins": [
"jscs-jsdoc"
],
"jsDoc": {
"checkAnnotations": {
"preset": "jsdoc3"
},
"checkParamNames": true,
"checkRedundantParams": true,
"requireParamTypes": true
}
"validateNewlineAfterArrayElements": true,
"validateParameterSeparator": ", "
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
"coveralls": "^2.11.2",
"eslint": "^1.5.1",
"istanbul": "^0.3.14",
"jscs": "^1.13.1",
"jscs-jsdoc": "^1.0.1",
"jscs": "^2.2.1",
"jshint": "^2.7.0",
"mocha": "^2.2.5",
"mocha-lcov-reporter": "^1.0.0"
Expand Down
24 changes: 14 additions & 10 deletions test/unit-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ describe('parseQuery()', function () {
preTypeHack: '',
type: 'all',
postTypeHack: '',
expressions: [{
modifier: 'min',
feature: 'resolution',
value: '3e1dpcm'
}]
expressions: [
{
modifier: 'min',
feature: 'resolution',
value: '3e1dpcm'
}
]
}
]);

Expand All @@ -68,11 +70,13 @@ describe('parseQuery()', function () {
preTypeHack: '',
type: 'screen',
postTypeHack: '',
expressions: [{
modifier: 'min',
feature: 'width',
value: '0\\0'
}]
expressions: [
{
modifier: 'min',
feature: 'width',
value: '0\\0'
}
]
}
]);

Expand Down

0 comments on commit c5bf416

Please sign in to comment.