|
| 1 | +module.exports = { |
| 2 | + "env": { |
| 3 | + "es6": true, |
| 4 | + "node": true |
| 5 | + }, |
| 6 | + "parser": "@typescript-eslint/parser", |
| 7 | + "parserOptions": { |
| 8 | + "project": "tsconfig.json", |
| 9 | + "sourceType": "module" |
| 10 | + }, |
| 11 | + "plugins": [ |
| 12 | + "@typescript-eslint" |
| 13 | + ], |
| 14 | + "extends": [ |
| 15 | + "eslint:recommended", |
| 16 | + "plugin:@typescript-eslint/recommended", |
| 17 | + "plugin:@typescript-eslint/recommended-requiring-type-checking" |
| 18 | + ], |
| 19 | + "rules": { |
| 20 | + "@typescript-eslint/adjacent-overload-signatures": "warn", |
| 21 | + "@typescript-eslint/array-type": [ |
| 22 | + "warn", |
| 23 | + { |
| 24 | + "default": "array" |
| 25 | + } |
| 26 | + ], |
| 27 | + "@typescript-eslint/naming-convention": [ |
| 28 | + "warn", |
| 29 | + { |
| 30 | + "selector": "enumMember", |
| 31 | + "format": ["PascalCase"] |
| 32 | + } |
| 33 | + ], |
| 34 | + "@typescript-eslint/consistent-type-assertions": "warn", |
| 35 | + "@typescript-eslint/consistent-type-definitions": "warn", |
| 36 | + "@typescript-eslint/indent": "warn", |
| 37 | + "@typescript-eslint/member-delimiter-style": [ |
| 38 | + "warn", |
| 39 | + { |
| 40 | + "multiline": { |
| 41 | + "delimiter": "semi", |
| 42 | + "requireLast": true |
| 43 | + }, |
| 44 | + "singleline": { |
| 45 | + "delimiter": "semi", |
| 46 | + "requireLast": false |
| 47 | + } |
| 48 | + } |
| 49 | + ], |
| 50 | + "@typescript-eslint/no-inferrable-types": "warn", |
| 51 | + "@typescript-eslint/no-unused-expressions": "off", |
| 52 | + "@typescript-eslint/no-var-requires": "off", |
| 53 | + "@typescript-eslint/prefer-for-of": "warn", |
| 54 | + "@typescript-eslint/prefer-namespace-keyword": "warn", |
| 55 | + "@typescript-eslint/quotes": [ |
| 56 | + "warn", |
| 57 | + "single", |
| 58 | + { |
| 59 | + "avoidEscape": true |
| 60 | + } |
| 61 | + ], |
| 62 | + "@typescript-eslint/semi": [ |
| 63 | + "warn", |
| 64 | + "never" |
| 65 | + ], |
| 66 | + "@typescript-eslint/triple-slash-reference": "warn", |
| 67 | + "@typescript-eslint/type-annotation-spacing": "warn", |
| 68 | + "arrow-body-style": "warn", |
| 69 | + "arrow-parens": [ |
| 70 | + "warn", |
| 71 | + "always" |
| 72 | + ], |
| 73 | + "brace-style": [ |
| 74 | + "warn", |
| 75 | + "stroustrup" |
| 76 | + ], |
| 77 | + "camelcase": "warn", |
| 78 | + "comma-dangle": [ |
| 79 | + "warn", |
| 80 | + "always-multiline" |
| 81 | + ], |
| 82 | + "curly": [ |
| 83 | + "warn", |
| 84 | + "multi-line" |
| 85 | + ], |
| 86 | + "eqeqeq": [ |
| 87 | + "warn", |
| 88 | + "smart" |
| 89 | + ], |
| 90 | + "id-match": "warn", |
| 91 | + "sort-imports": "warn", |
| 92 | + "new-parens": "warn", |
| 93 | + "no-eval": "warn", |
| 94 | + "no-irregular-whitespace": "warn", |
| 95 | + "no-multiple-empty-lines": [ |
| 96 | + "warn", |
| 97 | + { |
| 98 | + "max": 1 |
| 99 | + } |
| 100 | + ], |
| 101 | + "no-redeclare": "warn", |
| 102 | + "no-throw-literal": "warn", |
| 103 | + "no-trailing-spaces": "warn", |
| 104 | + "no-underscore-dangle": "warn", |
| 105 | + "no-unsafe-finally": "warn", |
| 106 | + "no-var": "warn", |
| 107 | + "one-var": [ |
| 108 | + "warn", |
| 109 | + "never" |
| 110 | + ], |
| 111 | + "prefer-const": "warn", |
| 112 | + "prefer-template": "warn", |
| 113 | + "quote-props": [ |
| 114 | + "warn", |
| 115 | + "as-needed" |
| 116 | + ], |
| 117 | + "radix": "warn", |
| 118 | + "space-before-function-paren": [ |
| 119 | + "warn", |
| 120 | + { |
| 121 | + "anonymous": "never", |
| 122 | + "named": "never", |
| 123 | + "asyncArrow": "always" |
| 124 | + } |
| 125 | + ], |
| 126 | + "spaced-comment": [ |
| 127 | + "warn", |
| 128 | + "always", |
| 129 | + { |
| 130 | + "markers": [ |
| 131 | + "/" |
| 132 | + ] |
| 133 | + } |
| 134 | + ], |
| 135 | + "use-isnan": "warn" |
| 136 | + } |
| 137 | +}; |
0 commit comments