.jshintrc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
  3. "browser": true, // Standard browser globals e.g. `window`, `document`.
  4. "esnext": true, // Allow ES.next specific features such as `const` and `let`.
  5. "bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
  6. "camelcase": false, // Permit only camelcase for `var` and `object indexes`.
  7. "curly": false, // Require {} for every new block or scope.
  8. "eqeqeq": true, // Require triple equals i.e. `===`.
  9. "immed": true, // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
  10. "latedef": true, // Prohibit variable use before definition.
  11. "newcap": true, // Require capitalization of all constructor functions e.g. `new F()`.
  12. "noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
  13. "quotmark": "single", // Define quotes to string values.
  14. "regexp": true, // Prohibit `.` and `[^...]` in regular expressions.
  15. "undef": true, // Require all non-global variables be declared before they are used.
  16. "unused": false, // Warn unused variables.
  17. "strict": true, // Require `use strict` pragma in every file.
  18. "trailing": true, // Prohibit trailing whitespaces.
  19. "smarttabs": false, // Suppresses warnings about mixed tabs and spaces
  20. "globals": { // Globals variables.
  21. "jasmine": true,
  22. "angular": true,
  23. "ApplicationConfiguration": true
  24. },
  25. "predef": [ // Extra globals.
  26. "define",
  27. "require",
  28. "exports",
  29. "module",
  30. "describe",
  31. "before",
  32. "beforeEach",
  33. "after",
  34. "afterEach",
  35. "it",
  36. "inject",
  37. "expect"
  38. ],
  39. "indent": 4, // Specify indentation spacing
  40. "devel": true, // Allow development statements e.g. `console.log();`.
  41. "noempty": true, // Prohibit use of empty blocks.
  42. "multistr": true
  43. }