|
| 1 | +{ |
| 2 | + "root": true, |
| 3 | + |
| 4 | + "env": { |
| 5 | + "node": true, |
| 6 | + "jest": true |
| 7 | + }, |
| 8 | + |
| 9 | + "parser": "@typescript-eslint/parser", |
| 10 | + |
| 11 | + "extends": [ |
| 12 | + "plugin:@typescript-eslint/recommended-requiring-type-checking", |
| 13 | + // TODO: make this work with typescript |
| 14 | + // "plugin:node/recommended" |
| 15 | + "prettier" |
| 16 | + ], |
| 17 | + |
| 18 | + "plugins": ["@typescript-eslint", "node", "security"], |
| 19 | + |
| 20 | + "parserOptions": { |
| 21 | + "project": "./tsconfig.json" |
| 22 | + }, |
| 23 | + |
| 24 | + "globals": { |
| 25 | + "__statics": true, |
| 26 | + "process": true |
| 27 | + }, |
| 28 | + |
| 29 | + // add your custom rules here |
| 30 | + "rules": { |
| 31 | + "no-debugger": "error", |
| 32 | + "no-process-exit": "off", |
| 33 | + "security/detect-non-literal-fs-filename": "warn", |
| 34 | + "security/detect-unsafe-regex": "error", |
| 35 | + "security/detect-buffer-noassert": "error", |
| 36 | + "security/detect-child-process": "warn", |
| 37 | + "security/detect-disable-mustache-escape": "error", |
| 38 | + "security/detect-eval-with-expression": "error", |
| 39 | + "security/detect-no-csrf-before-method-override": "error", |
| 40 | + "security/detect-non-literal-regexp": "error", |
| 41 | + "security/detect-non-literal-require": "warn", |
| 42 | + "security/detect-object-injection": "warn", |
| 43 | + "security/detect-possible-timing-attacks": "error", |
| 44 | + "security/detect-pseudoRandomBytes": "error", |
| 45 | + "space-before-function-paren": "off", |
| 46 | + "@typescript-eslint/default-param-last": "off", |
| 47 | + "@typescript-eslint/strict-boolean-expressions": 0, |
| 48 | + "no-return-await": "warn", |
| 49 | + "@typescript-eslint/return-await": "off" |
| 50 | + } |
| 51 | +} |
0 commit comments