Skip to content

Instantly share code, notes, and snippets.

@th3hunt
Forked from irae/.jslintrc
Last active January 7, 2018 02:40
Show Gist options
  • Save th3hunt/8400424 to your computer and use it in GitHub Desktop.
Save th3hunt/8400424 to your computer and use it in GitHub Desktop.
JSLint configuration
{
/*** Globals ***/
// To ignore any custom global variables, enable the `predef` option and list
// your variables within it.
"predef": [
"window",
"document",
"jQuery",
"Backbone",
"Marionette",
"Modernizr",
"_",
"setTimeout",
"clearTimeout",
"setInterval",
"clearInterval"
],
/*** 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": false,
"continue": true,
"css": true,
"debug": false,
"eqeq": false,
"es5": true,
"evil": false,
"forin": false,
"fragment": true,
"newcap": false,
"nomen": false,
"on": false,
"plusplus": true,
"regexp": true,
"sloppy": false,
"sub": false,
"undef": false,
"unparam": false,
"vars": false,
"white": false,
"validthis": true,
"strict_mode": true,
/*** Environments ***/
// Set each environment that you're using to `true`.
"browser": true,
"devel": true,
"node": false,
"rhino": false,
"widget": false,
"windows": false,
/*** Miscellaneous ***/
"indent": 4,
"maxerr": 50,
// "maxlen": 80,
"passfail": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment