Skip to content

Commit

Permalink
Updated jscs and jshint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkimbo committed Jan 26, 2015
1 parent ae30b56 commit 46afb68
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
13 changes: 7 additions & 6 deletions .jscs.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"],
"disallowLeftStickedOperators": ["?", "+", "-", "/", "*", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireRightStickedOperators": ["!"],
"requireLeftStickedOperators": [","],
"requireSpaceBeforeBlockStatements": true,
"requireSpaceBeforeBinaryOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireSpaceAfterBinaryOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<=", ","],
"requireSpaceBeforePostfixUnaryOperators": ["+", "-", "~", "!"],
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"disallowSpaceAfterBinaryOperators": ["!"],
"requireSpacesInConditionalExpression": true,
"disallowImplicitTypeConversion": ["string"],
"disallowKeywords": ["with"],
"disallowMultipleLineBreaks": true,
"disallowKeywordsOnNewLine": ["else"],
"disallowMixedSpacesAndTabs": true,
"disallowTrailingWhitespace": true,
"requireLineFeedAtFileEnd": true,
"requireSpacesInFunctionExpression": {
"beforeOpeningCurlyBrace": true
},
Expand Down
30 changes: 26 additions & 4 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,28 @@
{
"newcap": false,
"globalstrict": true,
"node": true,
"browser": true
// turn on to ENABLE warnings
"camelcase": true,
"bitwise": true,
"freeze": true,
"curly": true,
"eqeqeq": true,
"nonbsp": true,
"immed": true,
"noarg": true,
"unused": true,
"undef": true,
"strict": true,
"newcap": false,
"maxparams": 5,
"maxdepth": 5,

// turn on to DISABLE warnings
"globalstrict": true,
"eqnull": true,
"sub": true,
"supernew": true,

//enviroment
"node": true,
"browser": true,
"esnext": true
}

0 comments on commit 46afb68

Please sign in to comment.