Bug 1888590 - Mark some subtests on trusted-types-event-handlers.html as failing...
[gecko.git] / security / .eslintrc.js
blobb99ca306cfba5ab6dd7ae02cd1cc078293baa8e9
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     // Enforce return statements in callbacks of array methods.
10     "array-callback-return": "error",
12     // Require default case in switch statements.
13     "default-case": "error",
15     // Disallow use of alert(), confirm(), and prompt().
16     "no-alert": "error",
18     // Disallow likely erroneous `switch` scoped lexical declarations in
19     // case/default clauses.
20     "no-case-declarations": "error",
22     // Disallow constant expressions in conditions (except for loops).
23     "no-constant-condition": ["error", { checkLoops: false }],
25     // Disallow extending of native objects.
26     "no-extend-native": "error",
28     // Disallow use of assignment in return statement.
29     "no-return-assign": ["error", "always"],
31     // Disallow template literal placeholder syntax in regular strings.
32     "no-template-curly-in-string": "error",
34     // Disallow unmodified loop conditions.
35     "no-unmodified-loop-condition": "error",
37     // No expressions where a statement is expected
38     "no-unused-expressions": "error",
40     // Require "use strict" to be defined globally in the script.
41     strict: ["error", "global"],
43     // Disallow Yoda conditions.
44     yoda: ["error", "never"],
45   },