newscoop/JS-Scoopwriter

View on GitHub
.jshintrc

Summary

Maintainability
Test Coverage
{
  "browser": true,      // Standard browser globals e.g. `window`, `document`.
  "node": true,         // Tells JSHint to write for Node, this is for encapsulation
  "esnext": true,       // This option tells JSHint that your code uses ECMAScript 6 specific syntax.
  "bitwise": true,      // Prohibit bitwise operators (&, |, ^, etc.).
  "camelcase": false,    // Require variable names to use either camelCase style or UPPER_CASE with underscores.
  "curly": true,        // Require {} for every new block or scope.
  "eqeqeq": true,       // Require triple equals i.e. `===`.
  "forin": true,        // Prohibits `for in` loops without `hasOwnPrototype`.
  "freeze": true,       // Prohibits overwriting prototypes of native objects such as Array, Date and so on.
  "immed": true,        // Require immediate invocations to be wrapped in parens e.g. `( function(){}() );`
  "indent": 4,          // Specify indentation spacing
  "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`.
  "noempty": true,      // Prohibit use of empty blocks.
  "nonew": true,        // Prohibit use of constructors for side-effects.
  "newcap": true,       // Require capitalized names of constructor functions
  "plusplus": false,    // Prohibit use of `++` & `--`.
  "quotmark": "single", // Forces use of Single Quotes
  "undef": true,        // Require all non-global variables be declared before they are used.
  "unused": "vars",     // This option warns when you define and never use your variables (ignores function params).
  "strict": true,       // Require `use strict` pragma  in every file.
  "trailing": true,     // Prohibit trailing whitespaces.
  "regexp": true,       // Prohibit `.` and `[^...]` in regular expressions.
  "maxlen": 79,         // This option lets you set the maximum length of a line.
  "globals": {
    "AES_SETTINGS": false,  // global configuration object
    "angular": false,   // Tells JSHint about the existence of Angular as a global var
    "_": false,         // Tells JSHint about LoDash
    "$": false,         // jQuery
    "jQuery": false,    // jQuery
    "Aloha": false,     // Aloha
    "Range": false,     // built-in Range object
    "Routing": false,   // FOSJsRoutingBundle
    "alert": false,     // alert
    "XRegExp": false    // XRegExp library
  }
}