mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
b2464f8fa0
Drop linting of the .eslintrc.js config files. Fix some minor errors in the code (missing let/const, undefined vars). Let eslint know that some files get their globals from other places (typically via xul script tags). MozReview-Commit-ID: CwxuwPtRUr6 --HG-- rename : browser/components/contextualidentity/test/browser/.eslintrc.js => browser/components/syncedtabs/test/browser/.eslintrc.js rename : browser/components/contextualidentity/test/browser/.eslintrc.js => browser/extensions/webcompat/test/browser/.eslintrc.js extra : rebase_source : 9026aac49953d941853022cbab3e33d7d2f2fa21
50 lines
1.2 KiB
JavaScript
50 lines
1.2 KiB
JavaScript
// Parent config file for all browser-chrome files.
|
|
module.exports = {
|
|
"rules": {
|
|
"mozilla/import-headjs-globals": 2,
|
|
"mozilla/import-browserjs-globals": 2,
|
|
},
|
|
|
|
"env": {
|
|
"browser": true,
|
|
//"node": true
|
|
},
|
|
|
|
// All globals made available in the test environment.
|
|
"globals": {
|
|
"add_task": false,
|
|
"Assert": false,
|
|
"BrowserTestUtils": false,
|
|
"content": false,
|
|
"ContentTask": false,
|
|
"ContentTaskUtils": false,
|
|
"EventUtils": false,
|
|
"executeSoon": false,
|
|
"expectUncaughtException": false,
|
|
"export_assertions": false,
|
|
"extractJarToTmp": false,
|
|
"finish": false,
|
|
"getJar": false,
|
|
"getRootDirectory": false,
|
|
"getTestFilePath": false,
|
|
"gTestPath": false,
|
|
"info": false,
|
|
"ignoreAllUncaughtExceptions": false,
|
|
"is": false,
|
|
"isnot": false,
|
|
"ok": false,
|
|
"registerCleanupFunction": false,
|
|
"requestLongerTimeout": false,
|
|
"SimpleTest": false,
|
|
"SpecialPowers": false,
|
|
"TestUtils": false,
|
|
"thisTestLeaksUncaughtRejectionsAndShouldBeFixed": false,
|
|
"todo": false,
|
|
"todo_is": false,
|
|
"todo_isnot": false,
|
|
"waitForClipboard": false,
|
|
"waitForExplicitFinish": false,
|
|
"waitForFocus": false,
|
|
}
|
|
};
|