.eslintrc.mjs (971B)
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 export default [ 6 { 7 // Globals from mediasource.js. We use false to indicate they should not 8 // be overwritten in scripts. 9 languageOptions: { 10 globals: { 11 addMSEPrefs: false, 12 fetchAndLoad: false, 13 fetchAndLoadAsync: false, 14 fetchWithXHR: false, 15 logEvents: false, 16 loadSegment: false, 17 must_not_reject: false, 18 must_not_throw: false, 19 must_reject: false, 20 must_throw: false, 21 once: false, 22 range: false, 23 runWithMSE: false, 24 wait: false, 25 waitUntilTime: false, 26 }, 27 }, 28 // Use const/let instead of var for tighter scoping, avoiding redeclaration 29 rules: { 30 "no-var": "error", 31 "prefer-const": "error", 32 }, 33 }, 34 ];