Skip to content

Instantly share code, notes, and snippets.

@fernandoPalaciosGit
Last active December 15, 2015 22:11
Show Gist options
  • Select an option

  • Save fernandoPalaciosGit/832fe98b39293e7b274c to your computer and use it in GitHub Desktop.

Select an option

Save fernandoPalaciosGit/832fe98b39293e7b274c to your computer and use it in GitHub Desktop.
linter javascript, jshint, rules
{
    "quotmark": "single",
    "indent": 2,
    "multistr": true,
    "undef": true,
    "unused": true,
    "sub": true,
    "scripturl": true,
    "nonbsp": true,
    "latedef": true,
    "freeze": true,
    "evil": false,
    "nonew": true,
    "supernew": false,
    "noempty": true,
    "newcap": true,
    "immed": true,
    "eqeqeq": true,
    "debug": false,
    "devel": false,
    "curly": true,
    "bitwise": false,
    
    // Flow functions
    "strict": true,
    "expr": true,
    "maxcomplexity": 5,
    "maxdepth": 3,
    "maxstatements": 10,
    "maxparams": 4,
    "noarg": true,
    
    // Environment
    "esnext": false,
    "node": true,
    "jquery": true,
    "browser": true,
    "mocha": true,

    // Readonly variables
    "globals": {
        "io": false,
        "expect": false,
        "define": false
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment