openSUSE/open-build-service

View on GitHub
src/api/.jshintrc

Summary

Maintainability
Test Coverage
{
  "camelcase" : true, // true: Identifiers must be in camelCase
  "eqeqeq"    : true, // true: Require triple equals (===) for comparison
  "undef"     : true, // true: Require all non-global variables to be declared (prevents global leaks)
  "unused"    : true, // Unused variables: true : all variables, last function parameter
  "esversion" : 6,

  "globals" : {
    "$" :        false,
    "document" : false,
    "editors" :  false, // Set by codemirror
    "Option" :   false, // Constructor for creating an HTMLOptionElement.
    "ui" :       false,
    "window" :   false,
    "URL" :      false,
    "bootstrap": false,
    // Defined in our views. FIXME: We might be able to solve these by not having inline js
    "isOutdatedUrl" : false,
    "mainProjects"  : false,
    "exclProjects"  : false
  }
}