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/. */
9 // XXX Bug 1326071 - This should be reduced down - probably to 20 or to
10 // be removed & synced with the mozilla/recommended value.
11 complexity: ["error", { max: 44 }],
13 // Disallow empty statements. This will report an error for:
14 // try { something(); } catch (e) {}
15 // but will not report it for:
16 // try { something(); } catch (e) { /* Silencing the error because ...*/ }
17 // which is a valid use case.
20 // Maximum depth callbacks can be nested.
21 "max-nested-callbacks": ["error", 8],
23 // Disallow adding to native types
24 "no-extend-native": "error",