.eslintrc.mjs (590B)
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 globals from "globals"; 6 import mozilla from "eslint-plugin-mozilla"; 7 8 export default [ 9 { 10 languageOptions: { 11 globals: { 12 ...globals.webextensions, 13 getTestConfig: false, 14 startMark: true, 15 endMark: true, 16 name: true, 17 }, 18 }, 19 plugins: { mozilla }, 20 rules: { 21 "mozilla/avoid-Date-timing": "error", 22 }, 23 }, 24 ];