|
| 1 | +{ |
| 2 | + "extends": [ |
| 3 | + "plugin:security-node/recommended", |
| 4 | + "plugin:promise/recommended" |
| 5 | + ], |
| 6 | + "plugins": [ |
| 7 | + "security-node", |
| 8 | + "promise", |
| 9 | + "no-unsanitized", |
| 10 | + "sonarjs" |
| 11 | + ], |
| 12 | + "parser": "@typescript-eslint/parser", |
| 13 | + "parserOptions": { |
| 14 | + "ecmaVersion": 2022, |
| 15 | + "sourceType": "module", |
| 16 | + "project": "./tsconfig.eslint.json", |
| 17 | + "warnOnUnsupportedTypeScriptVersion": false |
| 18 | + }, |
| 19 | + "rules": { |
| 20 | + "no-unsanitized/method": "error", |
| 21 | + "no-unsanitized/property": "error", |
| 22 | + "eol-last": ["error", "always"], |
| 23 | + "quotes": ["error", "single"], |
| 24 | + |
| 25 | + "security-node/detect-child-process": "error", |
| 26 | + "security-node/detect-eval-with-expr": "error", |
| 27 | + "security-node/detect-non-literal-require-calls": "warn", |
| 28 | + "security-node/non-literal-reg-expr": "error", |
| 29 | + "security-node/detect-html-injection": "error", |
| 30 | + "security-node/detect-sql-injection": "error", |
| 31 | + "security-node/detect-unhandled-async-errors": "error", |
| 32 | + "security-node/detect-possible-timing-attacks": "error", |
| 33 | + "security-node/detect-nosql-injection": "error", |
| 34 | + "security-node/detect-security-missconfiguration-cookie": "error", |
| 35 | + "security-node/detect-dangerous-redirects": "error", |
| 36 | + "security-node/detect-insecure-randomness": "error", |
| 37 | + |
| 38 | + "sonarjs/no-all-duplicated-branches": "error", |
| 39 | + "sonarjs/no-element-overwrite": "error", |
| 40 | + "sonarjs/no-identical-conditions": "error", |
| 41 | + "sonarjs/no-identical-expressions": "error", |
| 42 | + "sonarjs/no-one-iteration-loop": "error", |
| 43 | + "sonarjs/no-use-of-empty-return-value": "error", |
| 44 | + "sonarjs/no-extra-arguments": "error", |
| 45 | + "sonarjs/no-identical-functions": "error", |
| 46 | + "sonarjs/no-duplicated-branches": "error", |
| 47 | + "sonarjs/cognitive-complexity": [ |
| 48 | + "error", |
| 49 | + 15 |
| 50 | + ] |
| 51 | + } |
| 52 | +} |
0 commit comments