1 | ;
|
2 |
|
3 | module.exports = {
|
4 | rules: {
|
5 | // disallow the use of assignments in conditional statements
|
6 | "no-cond-assign": [2, "except-parens"],
|
7 |
|
8 | // disallow the use of debugger
|
9 | "no-debugger": 2,
|
10 |
|
11 | // disallow duplicate arguments in functions
|
12 | "no-dupe-args": 2,
|
13 |
|
14 | // prevent duplicate declaration of class methods
|
15 | "no-dupe-class-members": 2,
|
16 |
|
17 | // disallow duplicate keys when creating objects
|
18 | "no-dupe-keys": 2,
|
19 |
|
20 | // ensure that the results of typeof are compared against a valid string
|
21 | "valid-typeof": 2,
|
22 | },
|
23 | };
|