Skip to content

Instantly share code, notes, and snippets.

@irae
Created May 21, 2012 19:22
Show Gist options
  • Save irae/2764095 to your computer and use it in GitHub Desktop.
Save irae/2764095 to your computer and use it in GitHub Desktop.

Revisions

  1. irae created this gist May 21, 2012.
    70 changes: 70 additions & 0 deletions .jslintrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,70 @@
    {
    /*** Globals ***/
    // To ignore any custom global variables, enable the `predef` option and list
    // your variables within it.
    "predef": [
    "exports",
    "YUITest",
    "YUI",
    "YUI_config",
    "YAHOO",
    "YAHOO_config",
    "Y",
    "global",
    "process",
    "require",
    "__filename",
    "module",
    "document",
    "navigator",
    "console",
    "window"
    ],

    /*** Enforcing options ***/
    // Set these to `true` to enforce, or `false` to relax.
    "adsafe": false,
    "safe": false,

    /*** Relaxing options ***/
    // Set these to `true` to relax, or `false` to enforce.
    "bitwise": false,
    "cap": false,
    "confusion": true,
    "continue": true,
    "css": true,
    "debug": false,
    "eqeq": false,
    "es5": true,
    "evil": false,
    "forin": false,
    "fragment": true,
    "newcap": false,
    "nomen": false,
    "on": false,
    "plusplus": false,
    "regexp": true,
    "sloppy": false,
    "sub": false,
    "undef": false,
    "unparam": true,
    "vars": true,
    "white": false,
    "validthis": true,
    "strict_mode":true,

    /*** Environments ***/
    // Set each environment that you're using to `true`.
    "browser": true,
    "devel": false,
    "node": true,
    "rhino": false,
    "widget": false,
    "windows": false,

    /*** Miscellaneous ***/
    "indent": 4,
    "maxerr": 50,
    // "maxlen": 80,
    "passfail": false
    }