|
1 | 1 | { |
| 2 | + "env": { |
| 3 | + "es6": true, |
| 4 | + "node": true |
| 5 | + }, |
| 6 | + "extends": "eslint:recommended", |
| 7 | + "parserOptions": { |
| 8 | + "ecmaVersion": "2022", |
| 9 | + "sourceType": "module" |
| 10 | + }, |
| 11 | + "plugins": [ |
| 12 | + "chai-expect", |
| 13 | + "mocha", |
| 14 | + "promise", |
| 15 | + "security" |
| 16 | + ], |
| 17 | + "root": true, |
2 | 18 | "rules": { |
3 | | - "security/detect-non-literal-require": 0 |
| 19 | + "array-bracket-spacing": [ "warn", "always" ], |
| 20 | + "brace-style": [ 2, "1tbs", { "allowSingleLine": true } ], |
| 21 | + "camelcase": "off", |
| 22 | + "chai-expect/missing-assertion": "error", |
| 23 | + "chai-expect/terminating-properties": "warn", |
| 24 | + "curly": [ "error", "all" ], |
| 25 | + "eol-last": "error", |
| 26 | + "indent": [ "error", "tab", { "SwitchCase": 1 } ], |
| 27 | + "keyword-spacing": [ "error" ], |
| 28 | + "linebreak-style": [ "error", "unix" ], |
| 29 | + "max-len": [ "error", 200 ], |
| 30 | + "no-case-declarations": "off", |
| 31 | + "no-cond-assign": "off", |
| 32 | + "no-console": "off", |
| 33 | + "no-constant-condition": "off", |
| 34 | + "no-control-regex": "off", |
| 35 | + "no-empty": "warn", |
| 36 | + "no-inner-declarations": "off", |
| 37 | + "no-mixed-spaces-and-tabs": "error", |
| 38 | + "no-multi-str": "error", |
| 39 | + "no-multiple-empty-lines": "error", |
| 40 | + "no-trailing-spaces": "error", |
| 41 | + "no-unused-vars": "off", |
| 42 | + "no-useless-escape": "warn", |
| 43 | + "promise/always-return": "error", |
| 44 | + "promise/no-return-wrap": "error", |
| 45 | + "promise/param-names": "error", |
| 46 | + "promise/catch-or-return": "error", |
| 47 | + "promise/no-native": "off", |
| 48 | + "promise/no-nesting": "warn", |
| 49 | + "promise/no-promise-in-callback": "warn", |
| 50 | + "promise/no-callback-in-promise": "warn", |
| 51 | + "promise/avoid-new": "off", |
| 52 | + "promise/no-new-statics": "error", |
| 53 | + "promise/no-return-in-finally": "warn", |
| 54 | + "promise/valid-params": "warn", |
| 55 | + "quotes": [ "error", "single" ], |
| 56 | + "semi": [ "error", "always" ], |
| 57 | + "space-before-blocks": [ "error", "always" ], |
| 58 | + "space-before-function-paren": [ "error", { "anonymous": "always", "named": "ignore", "asyncArrow": "always" }], |
| 59 | + "space-in-parens": [ "error", "never" ], |
| 60 | + "space-infix-ops": "error", |
| 61 | + "space-unary-ops": [ "error", { "nonwords": false, "overrides": {} } ], |
| 62 | + "valid-jsdoc": [ "warn", { "requireReturn": false, "requireReturnDescription": false } ] |
4 | 63 | } |
5 | 64 | } |
0 commit comments