Permalink
Browse files

updated lint config

  • Loading branch information...
1 parent 550374d commit 8aedacbcbb75ce566c15e3b5e36bc5c0a2892820 @puzrin puzrin committed Feb 15, 2013
Showing with 9 additions and 3 deletions.
  1. +9 −3 .jshintrc
View
@@ -2,20 +2,26 @@
// Enforcing Options /////////////////////////////////////////////////////////
"bitwise" : true, // Prohibit bitwise operators (&, |, ^, etc.).
+ "camelcase" : false, // Require variable names to be camelCase style or UPPER_CASE
"curly" : true, // Require {} for every new block or scope.
"eqeqeq" : true, // Require triple equals i.e. `===`.
"forin" : false, // Tolerate `for in` loops without `hasOwnPrototype`.
"immed" : true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
+ "indent" : 2, // This option enforces specific tab width for your code
"latedef" : true, // Prohibit hariable use before definition.
"newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`.
"noarg" : true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"noempty" : true, // Prohibit use of empty blocks.
"nonew" : true, // Prohibit use of constructors for side-effects.
"plusplus" : false, // Prohibit use of `++` & `--`.
+ "quotmark" : false, // Enforces the consistency of quotation marks used throughout your code.
"regexp" : false, // Prohibit `.` and `[^...]` in regular expressions.
"undef" : true, // Require all non-global variables be declared before they are used.
+ "unused" : false, // This option warns when you define and never use your variables.
"strict" : true, // Require `use strict` pragma in every file.
"trailing" : true, // Prohibit trailing whitespaces.
+ "maxstatements" : false, // Enforce max amount of statements per function
+ "maxcomplexity" : false, // Enforce cyclomatic complexity level
// Relaxing Options //////////////////////////////////////////////////////////
@@ -56,6 +62,7 @@
"nonstandard" : false, // Defines non-standard but widely adopted globals such as escape and unescape
"prototypejs" : false, // Defines globals exposed by the Prototype
"rhino" : false, // Defines globals exposed when running under Rhino
+ "worker" : false, // Defines globals exposed when running Web Worker
"wsh" : false, // Defines globals exposed when running under WSH
// Legacy ////////////////////////////////////////////////////////////////////
@@ -65,8 +72,7 @@
"passfail" : false, // Stop on first error.
"white" : false, // Check against strict whitespace and indentation rules.
- // Undocumented //////////////////////////////////////////////////////////////
+ // Other /////////////////////////////////////////////////////////////////////
- "maxerr" : 100, // Maximum error before stopping.
- "indent" : 2 // Specify indentation spacing
+ "maxerr" : 100 // Maximum error before stopping.
}

0 comments on commit 8aedacb

Please sign in to comment.