Created
March 4, 2014 01:07
-
-
Save ahomu/9338225 to your computer and use it in GitHub Desktop.
おれのコーディングスタイル (仮) https://github.com/mdevils/node-jscs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"requireCurlyBraces": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"try", | |
"catch" | |
], | |
"requireSpaceAfterKeywords": [ | |
"if", | |
"else", | |
"for", | |
"while", | |
"do", | |
"switch", | |
"return", | |
"try", | |
"catch" | |
], | |
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], | |
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="], | |
"requireRightStickedOperators": ["!"], | |
"requireLeftStickedOperators": [","], | |
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], | |
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], | |
"disallowImplicitTypeConversion": ["string"], | |
"disallowKeywords": ["with", "eval"], | |
"disallowMultipleLineBreaks": true, | |
"disallowMultipleLineStrings": true, | |
"disallowKeywordsOnNewLine": ["else"], | |
"disallowMixedSpacesAndTabs": true, | |
"disallowTrailingWhitespace": true, | |
"disallowEmptyBlocks": true, | |
"disallowQuotedKeysInObjects": "allButReserved", | |
"disallowYodaConditions": true, | |
"requireCamelCaseOrUpperCaseIdentifiers": true, | |
"requireCapitalizedConstructors": true, | |
"requireAlignedObjectValues": "skipWithLineBreak", | |
"requireCommaBeforeLineBreak": true, | |
"requireBlocksOnNewline": true, | |
"requireLineFeedAtFileEnd": true, | |
"requireParenthesesAroundIIFE": true, | |
"requireMultipleVarDecl": true, | |
"safeContextKeyword": true, | |
"excludeFiles": ["test/data/**"], | |
"requireSpacesInFunctionExpression": { | |
"beforeOpeningCurlyBrace": true | |
}, | |
"disallowSpacesInFunctionExpression": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"validateJSDoc": { | |
"checkParamNames": true, | |
"requireParamTypes": true | |
}, | |
"validateLineBreaks": "LF", | |
"validateIndentation": 2, | |
"validateQuoteMarks": "'" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment