|
| 1 | +{ |
| 2 | + "env": { |
| 3 | + "browser": true, |
| 4 | + "es6": true, |
| 5 | + "mocha": true, |
| 6 | + "node": true |
| 7 | + }, |
| 8 | + "extends": [ |
| 9 | + "plugin:@typescript-eslint/recommended", |
| 10 | + "plugin:@typescript-eslint/recommended-requiring-type-checking" |
| 11 | + ], |
| 12 | + "parser": "@typescript-eslint/parser", |
| 13 | + "parserOptions": { |
| 14 | + "project": "tsconfig.test.json", |
| 15 | + "sourceType": "module" |
| 16 | + }, |
| 17 | + "plugins": [ |
| 18 | + "eslint-plugin-import", |
| 19 | + "eslint-plugin-prefer-arrow", |
| 20 | + "@typescript-eslint" |
| 21 | + ], |
| 22 | + "rules": { |
| 23 | + "indent": ["warn", 2], |
| 24 | + "prefer-rest-params": "off", |
| 25 | + "prefer-spread": "off", |
| 26 | + "@typescript-eslint/no-unsafe-member-access": "off", |
| 27 | + "@typescript-eslint/no-unsafe-assignment": "off", |
| 28 | + "@typescript-eslint/no-unsafe-argument": "off", |
| 29 | + "@typescript-eslint/no-unsafe-call": "off", |
| 30 | + "@typescript-eslint/no-unsafe-return": "off", |
| 31 | + "@typescript-eslint/no-floating-promises": "off", |
| 32 | + "@typescript-eslint/restrict-template-expressions": "off", |
| 33 | + "@typescript-eslint/explicit-module-boundary-types": "off", |
| 34 | + "@typescript-eslint/require-await": "off", |
| 35 | + "@typescript-eslint/ban-ts-comment": "off", |
| 36 | + "@typescript-eslint/unbound-method": "off", |
| 37 | + "@typescript-eslint/no-this-alias": "off", |
| 38 | + "@typescript-eslint/prefer-regexp-exec": "off", |
| 39 | + "@typescript-eslint/no-misused-promises": "off", |
| 40 | + "@typescript-eslint/restrict-plus-operands": "off", |
| 41 | + // ---- |
| 42 | + "@typescript-eslint/adjacent-overload-signatures": "error", |
| 43 | + "@typescript-eslint/array-type": [ |
| 44 | + "error", |
| 45 | + { |
| 46 | + "default": "array" |
| 47 | + } |
| 48 | + ], |
| 49 | + "@typescript-eslint/ban-types": "off", |
| 50 | + "@typescript-eslint/consistent-type-assertions": "error", |
| 51 | + "@typescript-eslint/dot-notation": "error", |
| 52 | + "@typescript-eslint/explicit-member-accessibility": [ |
| 53 | + "error", |
| 54 | + { |
| 55 | + "accessibility": "no-public" |
| 56 | + } |
| 57 | + ], |
| 58 | + "@typescript-eslint/naming-convention": "off", |
| 59 | + "@typescript-eslint/no-empty-function": "off", |
| 60 | + "@typescript-eslint/no-empty-interface": "error", |
| 61 | + "@typescript-eslint/no-explicit-any": "off", |
| 62 | + "@typescript-eslint/no-misused-new": "error", |
| 63 | + "@typescript-eslint/no-namespace": "error", |
| 64 | + "@typescript-eslint/no-parameter-properties": "off", |
| 65 | + "@typescript-eslint/no-unused-expressions": "error", |
| 66 | + "@typescript-eslint/no-use-before-define": "off", |
| 67 | + "@typescript-eslint/no-var-requires": "error", |
| 68 | + "@typescript-eslint/prefer-for-of": "error", |
| 69 | + "@typescript-eslint/prefer-function-type": "error", |
| 70 | + "@typescript-eslint/prefer-namespace-keyword": "error", |
| 71 | + "@typescript-eslint/quotes": [ |
| 72 | + "error", |
| 73 | + "single" |
| 74 | + ], |
| 75 | + "@typescript-eslint/triple-slash-reference": [ |
| 76 | + "error", |
| 77 | + { |
| 78 | + "path": "always", |
| 79 | + "types": "prefer-import", |
| 80 | + "lib": "always" |
| 81 | + } |
| 82 | + ], |
| 83 | + "@typescript-eslint/unified-signatures": "error", |
| 84 | + "@typescript-eslint/consistent-type-imports": ["warn", { "prefer": "type-imports" }], |
| 85 | + "@typescript-eslint/object-curly-spacing": ["warn", "always"], |
| 86 | + "arrow-parens": [ |
| 87 | + "off", |
| 88 | + "always" |
| 89 | + ], |
| 90 | + "comma-dangle": "error", |
| 91 | + "complexity": "off", |
| 92 | + "constructor-super": "error", |
| 93 | + "eqeqeq": [ |
| 94 | + "error", |
| 95 | + "smart" |
| 96 | + ], |
| 97 | + "guard-for-in": "error", |
| 98 | + "id-blacklist": "off", |
| 99 | + "id-match": "off", |
| 100 | + "import/order": "off", |
| 101 | + // "jsdoc/check-alignment": "error", |
| 102 | + // "jsdoc/check-indentation": "error", |
| 103 | + // "jsdoc/newline-after-description": "error", |
| 104 | + "max-classes-per-file": "off", |
| 105 | + "max-len": "off", |
| 106 | + "new-parens": "error", |
| 107 | + "no-bitwise": "error", |
| 108 | + "no-caller": "error", |
| 109 | + "no-cond-assign": "error", |
| 110 | + "no-console": "error", |
| 111 | + "no-debugger": "error", |
| 112 | + "no-empty": "off", |
| 113 | + "no-eval": "error", |
| 114 | + "no-fallthrough": "off", |
| 115 | + "no-invalid-this": "off", |
| 116 | + "no-new-wrappers": "error", |
| 117 | + "no-shadow": [ |
| 118 | + "off", |
| 119 | + { |
| 120 | + "hoist": "all" |
| 121 | + } |
| 122 | + ], |
| 123 | + "no-throw-literal": "error", |
| 124 | + "no-trailing-spaces": "error", |
| 125 | + "no-undef-init": "error", |
| 126 | + "no-underscore-dangle": "off", |
| 127 | + "no-unsafe-finally": "error", |
| 128 | + "no-unused-labels": "error", |
| 129 | + "no-var": "error", |
| 130 | + "object-shorthand": "error", |
| 131 | + "one-var": [ |
| 132 | + "error", |
| 133 | + "never" |
| 134 | + ], |
| 135 | + "prefer-arrow/prefer-arrow-functions": "off", |
| 136 | + "prefer-const": "error", |
| 137 | + "radix": "error", |
| 138 | + "space-before-function-paren": "error", |
| 139 | + "spaced-comment": [ |
| 140 | + "error", |
| 141 | + "always", |
| 142 | + { |
| 143 | + "markers": [ |
| 144 | + "/" |
| 145 | + ] |
| 146 | + } |
| 147 | + ], |
| 148 | + "use-isnan": "error", |
| 149 | + "valid-typeof": "off" |
| 150 | + }, |
| 151 | + "overrides": [ |
| 152 | + { |
| 153 | + "files": ["test/**/*.ts"], |
| 154 | + "rules": { |
| 155 | + "@typescript-eslint/ban-ts-comment": "off", |
| 156 | + "@typescript-eslint/no-unused-vars": "off", |
| 157 | + "no-console": "off" |
| 158 | + } |
| 159 | + } |
| 160 | + ] |
| 161 | +} |
0 commit comments