.eslintrc.mjs (1003B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 import mozilla from "eslint-plugin-mozilla"; 6 7 export default [ 8 { 9 languageOptions: { 10 globals: { 11 Cc: false, 12 Ci: false, 13 Cu: false, 14 content: true, 15 dumpLog: false, 16 netscape: false, 17 addMessageListener: false, 18 goQuitApplication: false, 19 MozillaFileLogger: false, 20 Profiler: true, 21 Services: false, 22 gBrowser: false, 23 removeMessageListener: false, 24 sendAsyncMessage: false, 25 sendSyncMessage: false, 26 TalosPowersContent: true, 27 TalosPowersParent: true, 28 TalosContentProfiler: true, 29 TalosParentProfiler: true, 30 tpRecordTime: true, 31 }, 32 }, 33 plugins: { mozilla }, 34 35 rules: { 36 "mozilla/avoid-Date-timing": "error", 37 }, 38 }, 39 ];