Skip to content

Instantly share code, notes, and snippets.

@junheon
Forked from chrisbraddock/.jshintrc
Created September 29, 2013 09:44
Show Gist options
  • Select an option

  • Save junheon/6751004 to your computer and use it in GitHub Desktop.

Select an option

Save junheon/6751004 to your computer and use it in GitHub Desktop.

Revisions

  1. @chrisbraddock chrisbraddock created this gist Jun 14, 2013.
    41 changes: 41 additions & 0 deletions .jshintrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    {
    "asi" : false, // Require semicolons
    "boss" : false, // Don't allow variable assignments in conditionals
    "browser" : true, // Standard browser globals should be predefined
    "curly" : true, // Require curly braces for blocks (if, else, etc)
    "eqeqeq" : true, // === should be required
    "eqnull" : true, // == null comparisons should be tolerated
    "evil" : true, // Use of eval is ok
    "indent" : 4, // 4 spaces, soft-tabs
    "latedef" : true, // Prohibit use of var before definition
    "laxcomma" : false, // Commas must be on the end of a line, not the beginning of the next
    "loopfunc" : false, // Functions can not be declared within a loop. Unsure of whether this should be enforced.
    "phantom" : true, // PhantomJS symbols are allowed
    "node" : true, // NodeJS symbols are allowed
    "proto" : true, // Suppress __proto__ warnings
    "regexdash" : true, // First/last dash (-) is allowed
    "sub" : true, // Allow arr['key'] instead of arr.key
    "trailing" : true, // Error on trailing whitespace
    "undef" : true, // Prohibit undeclared var usage
    "unused" : "vars", // Warn on unused vars only, not function params
    "white" : true, // Strict whitespace rule checking
    "onevar" : true, // Only one var at the top of each function
    "globals": {
    // Libs
    "$": false,
    "_": false,
    "QUnit": false,

    // Development
    "console": false,

    // QUnit globals
    "test": false,
    "asyncTest": false,
    "ok": false,
    "deepEqual": false,
    "notEqual": false,
    "strictEqual": false,
    "start" : false
    }
    }