Created
May 11, 2016 14:30
-
-
Save 13twelve/57ffdf32d0ffc6b5fa752845da9da1a3 to your computer and use it in GitHub Desktop.
.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
{ | |
// Predefined globals whom JSHint will ignore | |
"browser": true, // Standard browser globals e.g. 'window', 'document' | |
"globals": { | |
"min$": false, | |
"$": false, | |
"console":true, | |
"A17":true | |
}, | |
// Development | |
"debug": false, // Allow debugger statements e.g. browser breakpoints | |
"devel": false, // Allow developments statements e.g. 'console.log();' | |
// ECMAScript 5 | |
"esversion": 5, // Allow ECMAScript 5 syntax. | |
"strict": false, // Require 'use strict' pragma in every file. | |
"globalstrict": false, // Allow global "use strict" (also enables 'strict') | |
// Rules | |
"bitwise": true, // Prohibit bitwise operators (&, |, ^, etc.) | |
"curly": true, // Require {} for every new block or scope. | |
"eqeqeq": true, // Require triple equals i.e. '==='. | |
"forin": true, // Tolerate 'for in' loops without 'hasOwnPrototype'. | |
"freeze": true, // Prohibits overwriting prototypes of native objects such as Array, Date etc. | |
"nocomma": true, | |
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee` | |
"noempty": true, // Prohibit use of empty blocks | |
"nonbsp": true, // Prohibit "non-breaking whitespace" characters | |
"unused": true, // Unused variables: all variables, last function parameter | |
"undef": true, // Require all non-global variables to be declared (prevents global leaks) | |
"quotmark": "single", // Quotation mark consistency: require single quotes | |
"futurehostile": true // Warn about identifiers from future versions of JS | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment