gecko-dev/devtools/.eslintrc.mochitests
J. Ryan Stinnett ca2a9fe178 Bug 912121 - Adjust ESLint files. r=pbrosset
Move ESList files up to /devtools to represent the entire DevTools tree.

Various relative paths and ignore files are also updated.

--HG--
rename : devtools/client/.eslintignore => devtools/.eslintignore
rename : devtools/client/.eslintrc => devtools/.eslintrc
rename : devtools/client/.eslintrc.mochitests => devtools/.eslintrc.mochitests
rename : devtools/client/.eslintrc.xpcshell => devtools/.eslintrc.xpcshell
extra : commitid : HoJlAh2kMrf
extra : rebase_source : 019757335769f5810481523a6797a717f2cc7acd
2015-09-21 12:02:32 -05:00

50 lines
1.4 KiB
Plaintext

// Parent config file for all devtools browser mochitest files.
{
"rules": {
// Only disallow non-global unused vars, so that things like the test
// function do not produce errors.
"no-unused-vars": [2, {"vars": "local"}],
// Allow using undefined variables so that tests can refer to functions
// and variables defined in head.js files, without having to maintain a
// list of globals in each .eslintrc file.
// Note that bug 1168340 will eventually help auto-registering globals
// from head.js files.
"no-undef": 0,
"block-scoped-var": 0
},
// All globals made available in the test environment.
"globals": {
"add_task": true,
"Assert": true,
"content": 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,
"test": true,
"todo": true,
"todo_is": true,
"todo_isnot": true,
"waitForClipboard": true,
"waitForExplicitFinish": true,
"waitForFocus": true,
"window": true,
}
}