github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/public/libs/qiniu-js-sdk-master/.jshintrc (about)

     1  /*************************************************************
     2   * JSHint Docs:
     3   *     http://www.jshint.com/docs
     4   *
     5   * NOTICE: All of our javascript file should pass check of jsHint.
     6   *
     7   *                                            by MaYiqing
     8   *************************************************************/
     9  
    10  {
    11      // Global objects
    12      "predef": [
    13          "Q",                // global namespace
    14          "model",            // UserViewModel
    15          "ko",               // knockout.js
    16          "Highcharts",       // highcharts.js
    17          "phpjs",            // php.js
    18          "_bucketName"       // defined in bucket_box_layout.html
    19      ],
    20  
    21      // Enforcing options
    22      //"quotmark": "single",   // always use single quotes
    23      "noarg": true,          // forbiden arguments.calle and arguments.caller
    24      "noempty": true,        // don't let statements blocks empty
    25      "eqeqeq": true,         // always use === to compare
    26      "undef": true,          // don't use undefined object
    27      "unused": "vars",       // warning when there are some var never use in the file
    28      "curly": true,          // always put curly braces around blocks in loops and conditionals
    29      "forin": true,          // use hasOwnProperty when use "for(key in obj){}"
    30      "newcap": true,         // must capitalize names of constructor functions
    31  
    32      // Relaxing options
    33      "expr": true,           // suppresses warnings about the use of expressions where function calls
    34      "boss": true,           // suppresses warnings about the use of assignments in cases where comparisons are expected
    35  
    36      // Enviroments
    37      "browser": true,        // globals exposed by modern browsers, like document, window, etc.
    38      "devel": true,          // globals that are usually used for logging poor-man's debugging: console, alert, etc.
    39      "jquery": true          // jquery library
    40  }