Browse Source

Move style checks from JSHint to JSCS.

Also remove the duplicate ones from .jshintrc.
pull/436/head
XhmikosR 11 years ago
parent
commit
74f38b331d
  1. 3
      js/.jscsrc
  2. 7
      js/.jshintrc

3
js/.jscsrc

@ -9,6 +9,9 @@
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowTrailingWhitespace": true,
"requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "case", "default"],
"requireLeftStickedOperators": [","],
"requireLineFeedAtFileEnd": true,
"requireParenthesesAroundIIFE": true,

7
js/.jshintrc

@ -1,22 +1,15 @@
{
"bitwise" : true,
"browser" : true,
"camelcase" : true,
"curly" : true,
"devel" : true,
"eqeqeq" : true,
"eqnull" : true,
"expr" : true,
"forin" : true,
"freeze" : true,
"immed" : true,
"indent" : 2,
"latedef" : true,
"newcap" : true,
"nonbsp" : true,
"quotmark" : "single",
"strict" : true,
"trailing" : true,
"undef" : true,
"unused" : true
}

Loading…
Cancel
Save