Permalink
Browse files

Add more jscs checks and some jscs todos

  • Loading branch information...
1 parent 0f38644 commit 0c5fbc4a4220d29ab3756b067a886d6768c6747a @c0bra c0bra committed Oct 8, 2014
Showing with 9 additions and 16 deletions.
  1. +2 −1 .jscs.json
  2. +7 −15 .jscs.json.todo
View
@@ -25,5 +25,6 @@
"disallowImplicitTypeConversion": ["string"],
"disallowMixedSpacesAndTabs": true,
"disallowTrailingComma": true,
- "disallowYodaConditions": true
+ "disallowYodaConditions": true,
+ "disallowNewlineBeforeBlockStatements": true
}
View
@@ -4,24 +4,16 @@
// that correct the existing code base issues and make the new check pass.
{
- "disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
- "disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
- "disallowMultipleLineBreaks": true,
-
- "disallowKeywordsOnNewLine": ["else"],
"requireKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
- "validateJSDoc": {
- "checkParamNames": true,
- "requireParamTypes": true
- },
-
- // (c0bra): Dunno about this one... it doesn't allow blank lines with whitespace
- "disallowTrailingWhitespace": true
-
- // (c0bra): Not supported in jscs yet (currently 1.3.0)
- // "requireSpaceBeforeBlockStatements": true
+ // This would prevent all-whitespace lines as well
+ "disallowTrailingWhitespace": tru
+
+ "requireSpaceBeforeBlockStatements": true
"requireSpaceBeforeObjectValues": true
+ "requireSpaceAfterLineComment": true
+ "validateLineBreaks": "LF"
+ "validateParameterSeparator": ", "
}

0 comments on commit 0c5fbc4

Please sign in to comment.