Created
October 10, 2013 21:42
-
-
Save jsoverson/6926107 to your computer and use it in GitHub Desktop.
running jshintrc
This file contains 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
Show hidden characters
{ | |
// Enforcing | |
"camelcase" : true, // true: Identifiers must be in camelCase | |
"curly" : false, // true: Require {} for every new block or scope | |
"indent" : 2, // {int} Number of spaces to use for indentation | |
"latedef" : "nofunc", // true: Require variables/functions to be defined before being used | |
"newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()` | |
"nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment) | |
"unused" : "vars", // true: Require all defined variables be used | |
"trailing" : true, // true: Prohibit trailing whitespaces | |
"maxparams" : 5, // {int} Max number of formal params allowed per function | |
"maxdepth" : 4, // {int} Max depth of nested blocks (within functions) | |
"maxstatements" : 20, // {int} Max number statements per function | |
"maxcomplexity" : 7, // {int} Max cyclomatic complexity per function | |
"maxlen" : 120, // {int} Max number of characters per line | |
// Relaxing | |
"esnext" : true, // true: Allow ES.next (ES6) syntax (ex: `const`) | |
"globalstrict" : true, // true: Allow global "use strict" (also enables 'strict') | |
// Environments | |
"browser" : true, // Web Browser (window, document, etc) | |
"devel" : true, // Development/debugging (alert, confirm, etc) | |
"jquery" : true, // jQuery | |
"node" : true, // Node.js | |
// Custom Globals | |
"globals" : { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment