Skip to content

Commit 0c5fbc4

Browse files
committed
Add more jscs checks and some jscs todos
1 parent 0f38644 commit 0c5fbc4

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.jscs.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
"disallowImplicitTypeConversion": ["string"],
2626
"disallowMixedSpacesAndTabs": true,
2727
"disallowTrailingComma": true,
28-
"disallowYodaConditions": true
28+
"disallowYodaConditions": true,
29+
"disallowNewlineBeforeBlockStatements": true
2930
}

.jscs.json.todo

+7-15
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,16 @@
44
// that correct the existing code base issues and make the new check pass.
55

66
{
7-
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
8-
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
9-
"disallowMultipleLineBreaks": true,
10-
11-
"disallowKeywordsOnNewLine": ["else"],
127
"requireKeywordsOnNewLine": ["else"],
138

149
"requireLineFeedAtFileEnd": true,
15-
"validateJSDoc": {
16-
"checkParamNames": true,
17-
"requireParamTypes": true
18-
},
19-
20-
// (c0bra): Dunno about this one... it doesn't allow blank lines with whitespace
21-
"disallowTrailingWhitespace": true
22-
23-
// (c0bra): Not supported in jscs yet (currently 1.3.0)
24-
// "requireSpaceBeforeBlockStatements": true
2510

11+
// This would prevent all-whitespace lines as well
12+
"disallowTrailingWhitespace": tru
13+
14+
"requireSpaceBeforeBlockStatements": true
2615
"requireSpaceBeforeObjectValues": true
16+
"requireSpaceAfterLineComment": true
17+
"validateLineBreaks": "LF"
18+
"validateParameterSeparator": ", "
2719
}

0 commit comments

Comments
 (0)