Bug 1890277: part 1) Add CSP parser tests for `require-trusted-types-for`. r=tschuster
[gecko.git] / browser / .eslintrc.js
blob174e444ee04e18cab1b040e7b01bb0c42b57a49f
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",
27   },