.eslintrc.mjs (1069B)
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 rules: { 8 "mozilla/no-aArgs": "error", 9 "mozilla/reject-importGlobalProperties": ["error", "everything"], 10 "mozilla/var-only-at-top-level": "error", 11 12 "block-scoped-var": "error", 13 camelcase: ["error", { properties: "never" }], 14 complexity: ["error", 20], 15 16 "handle-callback-err": ["error", "er"], 17 "max-nested-callbacks": ["error", 4], 18 "new-cap": ["error", { capIsNew: false }], 19 "no-fallthrough": "error", 20 "no-multi-str": "error", 21 "no-proto": "error", 22 "no-return-assign": "error", 23 "no-unused-vars": [ 24 "error", 25 { vars: "all", caughtErrors: "none", argsIgnorePattern: "^_" }, 26 ], 27 "one-var": ["error", "never"], 28 radix: "error", 29 strict: ["error", "global"], 30 yoda: "error", 31 "no-undef-init": "error", 32 }, 33 }, 34 ];