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": ["++", "--"], "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"disallowTrailingWhitespace": true, "disallowTrailingWhitespace": true,
"requireCamelCaseOrUpperCaseIdentifiers": true, "requireCamelCaseOrUpperCaseIdentifiers": true,
"requireCapitalizedConstructors": true,
"requireCommaBeforeLineBreak": true,
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch", "case", "default"],
"requireLeftStickedOperators": [","], "requireLeftStickedOperators": [","],
"requireLineFeedAtFileEnd": true, "requireLineFeedAtFileEnd": true,
"requireParenthesesAroundIIFE": true, "requireParenthesesAroundIIFE": true,

7
js/.jshintrc

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

Loading…
Cancel
Save