.eslintrc.mjs (879B)
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 "block-scoped-var": "error", 9 complexity: ["error", { max: 22 }], 10 "max-nested-callbacks": ["error", 3], 11 "no-extend-native": "error", 12 "no-multi-str": "error", 13 "no-return-assign": "error", 14 "no-unused-vars": [ 15 "error", 16 { argsIgnorePattern: "^_", caughtErrors: "none", vars: "all" }, 17 ], 18 strict: ["error", "global"], 19 yoda: "error", 20 }, 21 }, 22 { 23 files: ["**/head*.js"], 24 rules: { 25 "no-unused-vars": [ 26 "error", 27 { 28 argsIgnorePattern: "^_", 29 caughtErrors: "none", 30 vars: "local", 31 }, 32 ], 33 }, 34 }, 35 ];