Skip to content

Instantly share code, notes, and snippets.

@securingsincity
Created February 2, 2015 22:08
Show Gist options
  • Save securingsincity/8123a1a3010a1184e107 to your computer and use it in GitHub Desktop.
Save securingsincity/8123a1a3010a1184e107 to your computer and use it in GitHub Desktop.
jshintrc
{
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
"browser": true, // Standard browser globals e.g. `window`, `document`.
"esnext": true, // Allow ES.next specific features such as `const` and `let`.
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
"camelcase": false, // Permit only camelcase for `var` and `object indexes`.
"curly": false, // Require {} for every new block or scope.
"eqeqeq": true, // Require triple equals i.e. `===`.
"latedef": true, // Prohibit variable use before definition.
"newcap": false, // Require capitalization of all constructor functions e.g. `new F()`. -- Messenger warnings are annoying
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
"undef": true, // Require all non-global variables be declared before they are used.
"unused": true, // Warn unused variables.
"evil" : true,
"es3": true,
"trailing": true, // Prohibit trailing whitespaces.
"predef": [ // Extra globals.
"define",
"require",
"exports",
"module",
"describe",
"before",
"beforeEach",
"after",
"afterEach",
"it",
"inject",
"expect",
"ga",
"Messenger"
],
"indent": 2, // Specify indentation spacing
"devel": true, // Allow development statements e.g. `console.log();`.
"noempty": true // Prohibit use of empty blocks.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment