Skip to content

Commit

Permalink
move jscs rules to preset
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexej Yaroshevich committed Dec 26, 2014
1 parent 35f83e1 commit 0bd45aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 35 deletions.
39 changes: 4 additions & 35 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"plugins": ["jscs-bem"],
"preset": "bem",

"excludeFiles": [
".bem/cache/**",
".enb/tmp/**",
Expand All @@ -13,39 +16,5 @@
"libs/**",
"node_modules/**"
],
"fileExtensions": [".js", ".bemtree", ".bemhtml"],
"requireSpaceAfterKeywords": ["do", "else"],
"disallowOperatorBeforeLineBreak": ["."],
"disallowSpacesInCallExpression": true,
"disallowSpaceAfterKeywords": ["if", "for", "while", "switch"],
"disallowSpacesInFunctionExpression": {
"beforeOpeningRoundBrace": true
},
"disallowSpacesInsideArrayBrackets": true,
"requireSpacesInsideObjectBrackets": "all",
"requireSpaceAfterObjectKeys": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowSpaceBeforeBinaryOperators": [","],
"disallowSpacesInConditionalExpression": {
"afterTest": true,
"beforeConsequent": false,
"afterConsequent": false,
"beforeAlternate": false
},
"requireSpaceBeforeKeywords": [
"else",
"while",
"catch"
],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "&&", "||"],
"requireSpaceAfterBinaryOperators": [",", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", "&&", "||"],
"disallowKeywords": ["with"],
"disallowKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
"disallowMultipleLineBreaks": true,
"validateJSDoc": {
"checkParamNames": true,
"requireParamTypes": true
}
"fileExtensions": [".js", ".bemtree", ".bemhtml"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"http-server": "^0.7.2",
"istanbul": "0.3.5",
"jscs": "1.8.1",
"jscs-bem": "0.1.1",
"jshint": "2.5.11",
"jshint-groups": "0.6.2",
"stylus": "0.49.3",
Expand Down

0 comments on commit 0bd45aa

Please sign in to comment.