mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
fb13a772a1
MozReview-Commit-ID: DbrsnUVrAas --HG-- rename : tools/lint/eslint/eslint-plugin-mozilla/lib/rules/import-test-globals.js => tools/lint/eslint/eslint-plugin-mozilla/lib/environments/simpletest.js extra : rebase_source : 97d0537c347999159c82d4757b265f580ec981eb
53 lines
1.2 KiB
JavaScript
53 lines
1.2 KiB
JavaScript
// Parent config file for all mochitest files.
|
|
module.exports = {
|
|
rules: {
|
|
"mozilla/import-headjs-globals": "warn",
|
|
"mozilla/mark-test-function-used": "warn",
|
|
},
|
|
|
|
"env": {
|
|
"browser": true,
|
|
"mozilla/browser-window": true,
|
|
"mozilla/simpletest": true,
|
|
},
|
|
|
|
"plugins": [
|
|
"mozilla"
|
|
],
|
|
|
|
// All globals made available in the test environment.
|
|
"globals": {
|
|
// `$` is defined in SimpleTest.js
|
|
"$": false,
|
|
"add_task": false,
|
|
"addLoadEvent": false,
|
|
"Assert": false,
|
|
"BrowserTestUtils": false,
|
|
"ContentTask": false,
|
|
"EventUtils": false,
|
|
"executeSoon": false,
|
|
"export_assertions": false,
|
|
"extractJarToTmp": false,
|
|
"finish": false,
|
|
"getJar": false,
|
|
"getRootDirectory": false,
|
|
"getTestFilePath": false,
|
|
"gTestPath": false,
|
|
"info": false,
|
|
"is": false,
|
|
"isnot": false,
|
|
"ok": false,
|
|
"privateNoteIntentionalCrash": false,
|
|
"promise": false,
|
|
"registerCleanupFunction": false,
|
|
"requestLongerTimeout": false,
|
|
"SpecialPowers": false,
|
|
"todo": false,
|
|
"todo_is": false,
|
|
"todo_isnot": false,
|
|
"waitForClipboard": false,
|
|
"waitForExplicitFinish": false,
|
|
"waitForFocus": false,
|
|
}
|
|
};
|