Change the identation in the file .jscsrc to be 2 spaces

This commit is contained in:
Mohammad Fares 2018-07-26 22:01:22 +03:00
parent 4c4c6e9d4b
commit f5168d3402
1 changed files with 117 additions and 71 deletions

188
.jscsrc
View File

@ -1,73 +1,119 @@
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
],
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"return",
"try",
"catch"
],
"requireSemicolons": true,
"requireSpacesInForStatement": true,
"requireSpaceBeforeBlockStatements": true,
"requireParenthesesAroundIIFE": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireBlocksOnNewline": true,
"disallowEmptyBlocks": false,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"requireSpaceAfterComma": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforeBinaryOperators": [
"=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=",
"&=", "|=", "^=", "+", "-", "*", "/", "%", "<<", ">>", ">>>", "&",
"|", "^", "&&", "||", "===", "==", ">=", "<=", "<", ">", "!=", "!=="
],
"requireSpaceAfterBinaryOperators": true,
"requireCamelCaseOrUpperCaseIdentifiers": {
"ignoreProperties": true
},
"disallowKeywords": ["with"],
"disallowMultipleLineStrings": true,
"validateLineBreaks": "LF",
"validateIndentation": 2,
"disallowTrailingComma": true,
"requireLineFeedAtFileEnd": true,
"validateQuoteMarks": {
"mark": "'",
"escape": true
},
"requireCapitalizedComments": true,
"requireSpaceAfterLineComment": { "allExcept": ["//////////////////////////////////////////////////"] },
"jsDoc": {
"checkAnnotations": true,
"checkRedundantAccess": true,
"checkTypes": "capitalizedNativeCase",
"requireNewlineAfterDescription": true,
"checkParamExistence": true,
"checkParamNames": true,
"requireParamTypes": true,
"checkRedundantParams": true,
"requireReturnTypes": true
}
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch"
],
"requireSpaceAfterKeywords": [
"if",
"else",
"for",
"while",
"do",
"switch",
"return",
"try",
"catch"
],
"requireSemicolons": true,
"requireSpacesInForStatement": true,
"requireSpaceBeforeBlockStatements": true,
"requireParenthesesAroundIIFE": true,
"requireSpacesInConditionalExpression": true,
"requireSpacesInAnonymousFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireSpacesInNamedFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"requireBlocksOnNewline": true,
"disallowEmptyBlocks": false,
"disallowSpacesInsideObjectBrackets": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"requireSpaceAfterComma": true,
"disallowSpaceAfterPrefixUnaryOperators": [
"++",
"--",
"+",
"-",
"~",
"!"
],
"disallowSpaceBeforePostfixUnaryOperators": [
"++",
"--"
],
"requireSpaceBeforeBinaryOperators": [
"=",
"+=",
"-=",
"*=",
"/=",
"%=",
"<<=",
">>=",
">>>=",
"&=",
"|=",
"^=",
"+",
"-",
"*",
"/",
"%",
"<<",
">>",
">>>",
"&",
"|",
"^",
"&&",
"||",
"===",
"==",
">=",
"<=",
"<",
">",
"!=",
"!=="
],
"requireSpaceAfterBinaryOperators": true,
"requireCamelCaseOrUpperCaseIdentifiers": {
"ignoreProperties": true
},
"disallowKeywords": [
"with"
],
"disallowMultipleLineStrings": true,
"validateLineBreaks": "LF",
"validateIndentation": 2,
"disallowTrailingComma": true,
"requireLineFeedAtFileEnd": true,
"validateQuoteMarks": {
"mark": "'",
"escape": true
},
"requireCapitalizedComments": true,
"requireSpaceAfterLineComment": {
"allExcept": [
"//////////////////////////////////////////////////"
]
},
"jsDoc": {
"checkAnnotations": true,
"checkRedundantAccess": true,
"checkTypes": "capitalizedNativeCase",
"requireNewlineAfterDescription": true,
"checkParamExistence": true,
"checkParamNames": true,
"requireParamTypes": true,
"checkRedundantParams": true,
"requireReturnTypes": true
}
}