Skip to content

Commit

Permalink
Add jscsrc & jshintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Mar 31, 2015
1 parent 6aa8bc7 commit b96e157
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .jscsrc
@@ -0,0 +1,29 @@
{
"requireCurlyBraces": ["else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
"disallowMultipleVarDecl": true,
"requireSpacesInsideObjectBrackets": "allButNested",
"disallowSpacesInsideArrayBrackets": true,
"disallowSpacesInsideParentheses": true,
"disallowSpaceAfterObjectKeys": true,
"disallowQuotedKeysInObjects": true,
"requireSpaceBeforeBinaryOperators": ["?", "+", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowSpaceAfterBinaryOperators": ["!"],
"requireSpaceAfterBinaryOperators": ["?", ",", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowSpaceBeforeBinaryOperators": [","],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"disallowImplicitTypeConversion": ["numeric", "binary", "string"],
"disallowKeywords": ["with", "eval"],
"disallowMultipleLineBreaks": true,
"disallowKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
"disallowTrailingWhitespace": true,
"excludeFiles": ["node_modules/**", "bower_components/**"],
"validateIndentation": 2
}
31 changes: 31 additions & 0 deletions .jshintrc
@@ -0,0 +1,31 @@
{
"browser": true,
"jquery": true,
"node": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"indent": 2,
"latedef": true,
"noarg": true,
"newcap": false,
"quotmark": "single",
"unused": true,
"strict": true,
"trailing": true,
"smarttabs": true,
"white": true,
"freeze": true,
"immed": true,
"noempty": true,
"plusplus": true,
"undef": true,
"laxbreak": true,
"maxdepth": 3,
"loopfunc": true,
"maxcomplexity": 9,
"maxlen": 100,
"maxparams": 4
}

0 comments on commit b96e157

Please sign in to comment.