Last active
August 29, 2015 14:24
-
-
Save rtmalone/07bb0823f425559aaaa7 to your computer and use it in GitHub Desktop.
IH JSHint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| /* ENVIRONMENTS */ | |
| // specify a white list of global variables that are not formally defined in the source code. | |
| // See "environment" options in JSHINT Docs | |
| "globals": ["node", "jquery", "browser"], | |
| /* ENFORCING */ | |
| // This option requires you to always put curly braces around blocks in loops and conditionals | |
| "curly": true, | |
| // prohibits the use of == and != in favor of === and !== | |
| "eqeqeq": true, | |
| // prohibits the use of a variable before it was defined | |
| "latedef": true, | |
| // prohibits the use of the comma operator | |
| "nocomma": true, | |
| // requires all functions to run in ECMAScript 5's strict mode | |
| "strict": true, | |
| // prohibits the use of explicitly undeclared variables | |
| "undef": true, | |
| // warns when you define and never use your variables | |
| "unused": true, | |
| /* RELAXING */ | |
| // suppresses warnings about the use of expressions where normally you would | |
| // expect to see assignments or function calls | |
| "expr": true, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment