Skip to content

Instantly share code, notes, and snippets.

@ilanbiala
Created July 29, 2015 18:27
Show Gist options
  • Save ilanbiala/c59cf7fbde9c4c6196cd to your computer and use it in GitHub Desktop.
Save ilanbiala/c59cf7fbde9c4c6196cd to your computer and use it in GitHub Desktop.
{
"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. `===`.
"immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
"latedef": true, // Prohibit variable use before definition.
"newcap": true, // Require capitalization of all constructor functions e.g. `new F()`.
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"quotmark": "single", // Define quotes to string values.
"regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
"undef": true, // Require all non-global variables be declared before they are used.
"unused": false, // Warn unused variables.
"strict": false, // Require `use strict` pragma in every file.
"trailing": true, // Prohibit trailing whitespaces.
"smarttabs": false, // Suppresses warnings about mixed tabs and spaces
"globals": { // Globals variables.
"jasmine": true,
"angular": true
},
"predef": [ // Extra globals.
"module",
"describe",
"before",
"beforeEach",
"after",
"afterEach",
"it",
"xit",
"inject",
"expect"
],
"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