mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
22 lines
1 KiB
Text
22 lines
1 KiB
Text
// This is an incomplete TODO list of checks we want to start enforcing
|
|
//
|
|
// The goal is to enable these checks one by one by moving them to .jscs.json along with commits
|
|
// that correct the existing code base issues and make the new check pass.
|
|
|
|
{
|
|
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
|
|
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
|
|
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
|
|
"requireRightStickedOperators": ["!"],
|
|
"requireLeftStickedOperators": [","],
|
|
"disallowImplicitTypeConversion": ["string"],
|
|
"disallowMultipleLineBreaks": true,
|
|
"disallowKeywordsOnNewLine": ["else"],
|
|
"disallowTrailingWhitespace": true,
|
|
"requireLineFeedAtFileEnd": true,
|
|
"validateJSDoc": {
|
|
"checkParamNames": true,
|
|
"requireParamTypes": true
|
|
}
|
|
}
|