devtools/.eslintrc.mochitests
author Yoshi Huang <allstars.chh@mozilla.com>
Tue, 03 Nov 2015 09:50:54 +0800
changeset 295784 0e4c4db3b90ff45937cc1eab4b7bbd61f4674326
parent 294968 9a90fc88892fb4103c4cef14037997b4703e506f
child 300540 f13750b0247d0decc640ea858b4df98539c40969
permissions -rw-r--r--
Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking.

// Parent config file for all devtools browser mochitest files.
{
  "rules": {
    // Only disallow non-global unused vars, so that head.js does not produce
    // errors.
    "no-unused-vars": [2, {"vars": "local"}]
  },
  // All globals made available in the test environment.
  "globals": {
    "add_task": true,
    "Assert": true,
    "BrowserTestUtils": true,
    "content": true,
    "ContentTask": true,
    "document": true,
    "EventUtils": true,
    "executeSoon": true,
    "export_assertions": true,
    "finish": true,
    "gBrowser": true,
    "gDevTools": true,
    "getRootDirectory": true,
    "getTestFilePath": true,
    "gTestPath": true,
    "info": true,
    "is": true,
    "isnot": true,
    "navigator": true,
    "ok": true,
    "promise": true,
    "registerCleanupFunction": true,
    "requestLongerTimeout": true,
    "setTimeout": true,
    "SimpleTest": true,
    "SpecialPowers": true,
    "todo": true,
    "todo_is": true,
    "todo_isnot": true,
    "waitForClipboard": true,
    "waitForExplicitFinish": true,
    "waitForFocus": true,
    "window": true,
  }
}