|
| 1 | +{ |
| 2 | + "extends": ["eslint:recommended", "prettier"], |
| 3 | + "env": { |
| 4 | + "node": true, |
| 5 | + "es6": true |
| 6 | + }, |
| 7 | + "rules": { |
| 8 | + "eqeqeq": [2, "smart"], |
| 9 | + "no-caller": 2, |
| 10 | + "dot-notation": 2, |
| 11 | + "no-var": 2, |
| 12 | + "prefer-const": 2, |
| 13 | + "prefer-arrow-callback": [2, { "allowNamedFunctions": true }], |
| 14 | + "arrow-body-style": [2, "as-needed"], |
| 15 | + "object-shorthand": 2, |
| 16 | + "prefer-template": 2, |
| 17 | + "one-var": [2, "never"], |
| 18 | + "prefer-destructuring": [2, { "object": true }], |
| 19 | + "capitalized-comments": 2, |
| 20 | + "multiline-comment-style": [2, "starred-block"], |
| 21 | + "spaced-comment": 2, |
| 22 | + "yoda": [2, "never"], |
| 23 | + "curly": [2, "multi-line"], |
| 24 | + "no-else-return": 2 |
| 25 | + }, |
| 26 | + "overrides": [ |
| 27 | + { |
| 28 | + "files": "*.ts", |
| 29 | + "extends": [ |
| 30 | + "plugin:@typescript-eslint/eslint-recommended", |
| 31 | + "plugin:@typescript-eslint/recommended", |
| 32 | + "prettier/@typescript-eslint" |
| 33 | + ], |
| 34 | + "parserOptions": { |
| 35 | + "sourceType": "module", |
| 36 | + "project": "./tsconfig.eslint.json" |
| 37 | + }, |
| 38 | + "rules": { |
| 39 | + "@typescript-eslint/prefer-for-of": 0, |
| 40 | + "@typescript-eslint/member-ordering": 0, |
| 41 | + "@typescript-eslint/explicit-function-return-type": 0, |
| 42 | + "@typescript-eslint/no-unused-vars": 0, |
| 43 | + "@typescript-eslint/no-use-before-define": [ |
| 44 | + 2, |
| 45 | + { "functions": false } |
| 46 | + ], |
| 47 | + "@typescript-eslint/consistent-type-definitions": [ |
| 48 | + 2, |
| 49 | + "interface" |
| 50 | + ], |
| 51 | + "@typescript-eslint/prefer-function-type": 2, |
| 52 | + "@typescript-eslint/no-unnecessary-type-arguments": 2, |
| 53 | + "@typescript-eslint/prefer-string-starts-ends-with": 2, |
| 54 | + "@typescript-eslint/prefer-readonly": 2, |
| 55 | + "@typescript-eslint/prefer-includes": 2, |
| 56 | + "@typescript-eslint/no-unnecessary-condition": 2, |
| 57 | + "@typescript-eslint/switch-exhaustiveness-check": 2, |
| 58 | + "@typescript-eslint/prefer-nullish-coalescing": 2 |
| 59 | + } |
| 60 | + } |
| 61 | + ] |
| 62 | +} |
0 commit comments