|  | 
|  | 1 | +// TODO: Remove "warn" settings for the rules after resolving them | 
|  | 2 | +module.exports = { | 
|  | 3 | +    "env": { | 
|  | 4 | +        "browser": true, | 
|  | 5 | +        "node": true | 
|  | 6 | +    }, | 
|  | 7 | +    "extends": [ | 
|  | 8 | +        "plugin:@typescript-eslint/recommended", | 
|  | 9 | +        "plugin:@typescript-eslint/recommended-requiring-type-checking" | 
|  | 10 | +    ], | 
|  | 11 | +    "parser": "@typescript-eslint/parser", | 
|  | 12 | +    "parserOptions": { | 
|  | 13 | +        "project": "webpack.test.tsconfig.json", | 
|  | 14 | +        "sourceType": "module" | 
|  | 15 | +    }, | 
|  | 16 | +    "plugins": [ | 
|  | 17 | +        "eslint-plugin-jsdoc", | 
|  | 18 | +        "eslint-plugin-prefer-arrow", | 
|  | 19 | +        "eslint-plugin-import", | 
|  | 20 | +        "@typescript-eslint" | 
|  | 21 | +    ], | 
|  | 22 | +    "rules": { | 
|  | 23 | +        "@typescript-eslint/adjacent-overload-signatures": "warn", | 
|  | 24 | +        "@typescript-eslint/array-type": [ | 
|  | 25 | +            "warn", | 
|  | 26 | +            { | 
|  | 27 | +                "default": "array-simple" | 
|  | 28 | +            } | 
|  | 29 | +        ], | 
|  | 30 | +        "@typescript-eslint/await-thenable": "warn", | 
|  | 31 | +        "@typescript-eslint/ban-ts-comment": "warn", | 
|  | 32 | +        "@typescript-eslint/ban-types": [ | 
|  | 33 | +            "warn", | 
|  | 34 | +            { | 
|  | 35 | +                "types": { | 
|  | 36 | +                    "Object": { | 
|  | 37 | +                        "message": "Avoid using the `Object` type. Did you mean `object`?" | 
|  | 38 | +                    }, | 
|  | 39 | +                    "Function": { | 
|  | 40 | +                        "message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`." | 
|  | 41 | +                    }, | 
|  | 42 | +                    "Boolean": { | 
|  | 43 | +                        "message": "Avoid using the `Boolean` type. Did you mean `boolean`?" | 
|  | 44 | +                    }, | 
|  | 45 | +                    "Number": { | 
|  | 46 | +                        "message": "Avoid using the `Number` type. Did you mean `number`?" | 
|  | 47 | +                    }, | 
|  | 48 | +                    "String": { | 
|  | 49 | +                        "message": "Avoid using the `String` type. Did you mean `string`?" | 
|  | 50 | +                    }, | 
|  | 51 | +                    "Symbol": { | 
|  | 52 | +                        "message": "Avoid using the `Symbol` type. Did you mean `symbol`?" | 
|  | 53 | +                    } | 
|  | 54 | +                } | 
|  | 55 | +            } | 
|  | 56 | +        ], | 
|  | 57 | +        "@typescript-eslint/consistent-type-assertions": "warn", | 
|  | 58 | +        "@typescript-eslint/consistent-type-definitions": "warn", | 
|  | 59 | +        "@typescript-eslint/dot-notation": "warn", | 
|  | 60 | +        "@typescript-eslint/explicit-member-accessibility": [ | 
|  | 61 | +            "off", | 
|  | 62 | +            { | 
|  | 63 | +                "accessibility": "explicit" | 
|  | 64 | +            } | 
|  | 65 | +        ], | 
|  | 66 | +        "@typescript-eslint/explicit-module-boundary-types": "warn", | 
|  | 67 | +        "@typescript-eslint/indent": [ | 
|  | 68 | +            "warn", | 
|  | 69 | +            2, | 
|  | 70 | +            { | 
|  | 71 | +                "FunctionDeclaration": { | 
|  | 72 | +                    "parameters": "first" | 
|  | 73 | +                }, | 
|  | 74 | +                "FunctionExpression": { | 
|  | 75 | +                    "parameters": "first" | 
|  | 76 | +                } | 
|  | 77 | +            } | 
|  | 78 | +        ], | 
|  | 79 | +        "@typescript-eslint/member-delimiter-style": [ | 
|  | 80 | +            "warn", | 
|  | 81 | +            { | 
|  | 82 | +                "multiline": { | 
|  | 83 | +                    "delimiter": "semi", | 
|  | 84 | +                    "requireLast": true | 
|  | 85 | +                }, | 
|  | 86 | +                "singleline": { | 
|  | 87 | +                    "delimiter": "semi", | 
|  | 88 | +                    "requireLast": false | 
|  | 89 | +                } | 
|  | 90 | +            } | 
|  | 91 | +        ], | 
|  | 92 | +        "@typescript-eslint/member-ordering": "warn", | 
|  | 93 | +        "@typescript-eslint/naming-convention": "warn", | 
|  | 94 | +        "@typescript-eslint/no-array-constructor": "warn", | 
|  | 95 | +        "@typescript-eslint/no-empty-function": "warn", | 
|  | 96 | +        "@typescript-eslint/no-empty-interface": "warn", | 
|  | 97 | +        "@typescript-eslint/no-explicit-any": "off", | 
|  | 98 | +        "@typescript-eslint/no-extra-non-null-assertion": "warn", | 
|  | 99 | +        "@typescript-eslint/no-extra-semi": "warn", | 
|  | 100 | +        "@typescript-eslint/no-floating-promises": "warn", | 
|  | 101 | +        "@typescript-eslint/no-for-in-array": "warn", | 
|  | 102 | +        "@typescript-eslint/no-implied-eval": "warn", | 
|  | 103 | +        "@typescript-eslint/no-inferrable-types": "warn", | 
|  | 104 | +        "@typescript-eslint/no-misused-new": "warn", | 
|  | 105 | +        "@typescript-eslint/no-misused-promises": "warn", | 
|  | 106 | +        "@typescript-eslint/no-namespace": "warn", | 
|  | 107 | +        "@typescript-eslint/no-non-null-asserted-optional-chain": "warn", | 
|  | 108 | +        "@typescript-eslint/no-non-null-assertion": "warn", | 
|  | 109 | +        "@typescript-eslint/no-parameter-properties": "off", | 
|  | 110 | +        "@typescript-eslint/no-this-alias": "warn", | 
|  | 111 | +        "@typescript-eslint/no-unnecessary-type-assertion": "warn", | 
|  | 112 | +        "@typescript-eslint/no-unsafe-assignment": "warn", | 
|  | 113 | +        "@typescript-eslint/no-unsafe-call": "warn", | 
|  | 114 | +        "@typescript-eslint/no-unsafe-member-access": "warn", | 
|  | 115 | +        "@typescript-eslint/no-unsafe-return": "warn", | 
|  | 116 | +        "@typescript-eslint/no-unused-expressions": "warn", | 
|  | 117 | +        "@typescript-eslint/no-unused-vars": "warn", | 
|  | 118 | +        "@typescript-eslint/no-use-before-define": "off", | 
|  | 119 | +        "@typescript-eslint/no-var-requires": "warn", | 
|  | 120 | +        "@typescript-eslint/prefer-as-const": "warn", | 
|  | 121 | +        "@typescript-eslint/prefer-for-of": "warn", | 
|  | 122 | +        "@typescript-eslint/prefer-function-type": "warn", | 
|  | 123 | +        "@typescript-eslint/prefer-namespace-keyword": "warn", | 
|  | 124 | +        "@typescript-eslint/prefer-regexp-exec": "warn", | 
|  | 125 | +        "@typescript-eslint/quotes": [ | 
|  | 126 | +            "off", | 
|  | 127 | +            { | 
|  | 128 | +                "avoidEscape": true | 
|  | 129 | +            } | 
|  | 130 | +        ], | 
|  | 131 | +        "@typescript-eslint/require-await": "warn", | 
|  | 132 | +        "@typescript-eslint/restrict-plus-operands": "warn", | 
|  | 133 | +        "@typescript-eslint/restrict-template-expressions": "warn", | 
|  | 134 | +        "@typescript-eslint/semi": [ | 
|  | 135 | +            "warn", | 
|  | 136 | +            "always" | 
|  | 137 | +        ], | 
|  | 138 | +        "@typescript-eslint/triple-slash-reference": [ | 
|  | 139 | +            "warn", | 
|  | 140 | +            { | 
|  | 141 | +                "path": "always", | 
|  | 142 | +                "types": "prefer-import", | 
|  | 143 | +                "lib": "always" | 
|  | 144 | +            } | 
|  | 145 | +        ], | 
|  | 146 | +        "@typescript-eslint/type-annotation-spacing": "warn", | 
|  | 147 | +        "@typescript-eslint/unbound-method": "warn", | 
|  | 148 | +        "@typescript-eslint/unified-signatures": "warn", | 
|  | 149 | +        "arrow-body-style": "warn", | 
|  | 150 | +        "arrow-parens": [ | 
|  | 151 | +            "warn", | 
|  | 152 | +            "always" | 
|  | 153 | +        ], | 
|  | 154 | +        "brace-style": [ | 
|  | 155 | +            "off", | 
|  | 156 | +            "1tbs" | 
|  | 157 | +        ], | 
|  | 158 | +        "comma-dangle": "off", | 
|  | 159 | +        "complexity": "off", | 
|  | 160 | +        "constructor-super": "warn", | 
|  | 161 | +        "curly": "warn", | 
|  | 162 | +        "eol-last": "warn", | 
|  | 163 | +        "eqeqeq": [ | 
|  | 164 | +            "warn", | 
|  | 165 | +            "smart" | 
|  | 166 | +        ], | 
|  | 167 | +        "guard-for-in": "warn", | 
|  | 168 | +        "id-blacklist": [ | 
|  | 169 | +            "warn", | 
|  | 170 | +            "any", | 
|  | 171 | +            "Number", | 
|  | 172 | +            "number", | 
|  | 173 | +            "String", | 
|  | 174 | +            "string", | 
|  | 175 | +            "Boolean", | 
|  | 176 | +            "boolean", | 
|  | 177 | +            "Undefined", | 
|  | 178 | +            "undefined" | 
|  | 179 | +        ], | 
|  | 180 | +        "id-match": "warn", | 
|  | 181 | +        "import/order": "warn", | 
|  | 182 | +        "jsdoc/check-alignment": "warn", | 
|  | 183 | +        "jsdoc/check-indentation": "warn", | 
|  | 184 | +        "jsdoc/newline-after-description": "warn", | 
|  | 185 | +        "max-classes-per-file": [ | 
|  | 186 | +            "warn", | 
|  | 187 | +            1 | 
|  | 188 | +        ], | 
|  | 189 | +        "max-len": "off", | 
|  | 190 | +        "new-parens": "warn", | 
|  | 191 | +        "no-array-constructor": "off", | 
|  | 192 | +        "no-bitwise": "warn", | 
|  | 193 | +        "no-caller": "warn", | 
|  | 194 | +        "no-cond-assign": "warn", | 
|  | 195 | +        "no-console": "off", | 
|  | 196 | +        "no-debugger": "warn", | 
|  | 197 | +        "no-empty": "warn", | 
|  | 198 | +        "no-empty-function": "off", | 
|  | 199 | +        "no-eval": "warn", | 
|  | 200 | +        "no-extra-semi": "off", | 
|  | 201 | +        "no-fallthrough": "off", | 
|  | 202 | +        "no-implied-eval": "off", | 
|  | 203 | +        "no-invalid-this": "off", | 
|  | 204 | +        "no-multiple-empty-lines": "warn", | 
|  | 205 | +        "no-new-wrappers": "warn", | 
|  | 206 | +        "no-shadow": [ | 
|  | 207 | +            "warn", | 
|  | 208 | +            { | 
|  | 209 | +                "hoist": "all" | 
|  | 210 | +            } | 
|  | 211 | +        ], | 
|  | 212 | +        "no-throw-literal": "warn", | 
|  | 213 | +        "no-trailing-spaces": "warn", | 
|  | 214 | +        "no-undef-init": "warn", | 
|  | 215 | +        "no-underscore-dangle": "warn", | 
|  | 216 | +        "no-unsafe-finally": "warn", | 
|  | 217 | +        "no-unused-labels": "warn", | 
|  | 218 | +        "no-unused-vars": "off", | 
|  | 219 | +        "no-var": "warn", | 
|  | 220 | +        "object-shorthand": "warn", | 
|  | 221 | +        "one-var": [ | 
|  | 222 | +            "warn", | 
|  | 223 | +            "never" | 
|  | 224 | +        ], | 
|  | 225 | +        "prefer-arrow/prefer-arrow-functions": "warn", | 
|  | 226 | +        "prefer-const": "warn", | 
|  | 227 | +        "prefer-rest-params": "warn", | 
|  | 228 | +        "quote-props": [ | 
|  | 229 | +            "warn", | 
|  | 230 | +            "consistent-as-needed" | 
|  | 231 | +        ], | 
|  | 232 | +        "radix": "warn", | 
|  | 233 | +        "require-await": "off", | 
|  | 234 | +        "space-before-function-paren": [ | 
|  | 235 | +            "warn", | 
|  | 236 | +            { | 
|  | 237 | +                "anonymous": "never", | 
|  | 238 | +                "asyncArrow": "always", | 
|  | 239 | +                "named": "never" | 
|  | 240 | +            } | 
|  | 241 | +        ], | 
|  | 242 | +        "spaced-comment": [ | 
|  | 243 | +            "warn", | 
|  | 244 | +            "always", | 
|  | 245 | +            { | 
|  | 246 | +                "markers": [ | 
|  | 247 | +                    "/" | 
|  | 248 | +                ] | 
|  | 249 | +            } | 
|  | 250 | +        ], | 
|  | 251 | +        "use-isnan": "warn", | 
|  | 252 | +        "valid-typeof": "off" | 
|  | 253 | +    } | 
|  | 254 | +}; | 
0 commit comments