Bug 1690340 - Part 5: Remove the menu separators from the developer tools menu. r...
[gecko.git] / browser / .eslintrc.js
blob2461a90b6718a51331feb19dbd2ed823de7efd86
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/. */
5 "use strict";
7 module.exports = {
8   rules: {
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.
18     "no-empty": "error",
20     // Maximum depth callbacks can be nested.
21     "max-nested-callbacks": ["error", 8],
23     // Disallow adding to native types
24     "no-extend-native": "error",
26     "no-shadow": "error",
28     "mozilla/no-task": "error",
29   },