| 1 |
{ |
| 2 |
"extends": [ |
| 3 |
"airbnb-base", |
| 4 |
"prettier" |
| 5 |
], |
| 6 |
"parser": "@typescript-eslint/parser", |
| 7 |
"rules": { |
| 8 |
"no-underscore-dangle": "off", |
| 9 |
"no-console": "off", |
| 10 |
"no-plusplus": "off", |
| 11 |
"func-names": [ |
| 12 |
"warn", |
| 13 |
"as-needed" |
| 14 |
], |
| 15 |
"prefer-destructuring": [ |
| 16 |
"error", |
| 17 |
{ |
| 18 |
"object": true, |
| 19 |
"array": false |
| 20 |
} |
| 21 |
], |
| 22 |
"no-prototype-builtins": "warn", |
| 23 |
"no-restricted-syntax": [ |
| 24 |
"error", |
| 25 |
{ |
| 26 |
"selector": "LabeledStatement", |
| 27 |
"message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand." |
| 28 |
}, |
| 29 |
{ |
| 30 |
"selector": "WithStatement", |
| 31 |
"message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize." |
| 32 |
} |
| 33 |
] |
| 34 |
}, |
| 35 |
"overrides": [ |
| 36 |
{ |
| 37 |
"files": [ |
| 38 |
"test/**/*.js", |
| 39 |
"test/**/*.ts" |
| 40 |
], |
| 41 |
"rules": { |
| 42 |
"no-unused-expressions": "off" |
| 43 |
}, |
| 44 |
"env": { |
| 45 |
"mocha": true |
| 46 |
} |
| 47 |
} |
| 48 |
], |
| 49 |
"root": true |
| 50 |
} |