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.
my jslintrc
{
/*** 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
}
@FrancoAguilera
Copy link

Hi, since yesterday I'm using the atom editor, I have set the things up like in you config but it seem to me that the jslintrc it never get's applied, is there any other configuration that I'm missing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment