| 
 | 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 | +        "SwitchCase": 1,  | 
 | 72 | +        "FunctionDeclaration": {  | 
 | 73 | +          "parameters": "first"  | 
 | 74 | +        },  | 
 | 75 | +        "FunctionExpression": {  | 
 | 76 | +          "parameters": "first"  | 
 | 77 | +        }  | 
 | 78 | +      }  | 
 | 79 | +    ],  | 
 | 80 | +    "@typescript-eslint/member-delimiter-style": [  | 
 | 81 | +      "warn",  | 
 | 82 | +      {  | 
 | 83 | +        "multiline": {  | 
 | 84 | +          "delimiter": "semi",  | 
 | 85 | +          "requireLast": true  | 
 | 86 | +        },  | 
 | 87 | +        "singleline": {  | 
 | 88 | +          "delimiter": "semi",  | 
 | 89 | +          "requireLast": false  | 
 | 90 | +        }  | 
 | 91 | +      }  | 
 | 92 | +    ],  | 
 | 93 | +    "@typescript-eslint/member-ordering": "off",  | 
 | 94 | +    "@typescript-eslint/naming-convention": "off",  | 
 | 95 | +    "@typescript-eslint/no-array-constructor": "warn",  | 
 | 96 | +    "@typescript-eslint/no-empty-function": "warn",  | 
 | 97 | +    "@typescript-eslint/no-empty-interface": "warn",  | 
 | 98 | +    "@typescript-eslint/no-explicit-any": "off",  | 
 | 99 | +    "@typescript-eslint/no-extra-non-null-assertion": "warn",  | 
 | 100 | +    "@typescript-eslint/no-extra-semi": "warn",  | 
 | 101 | +    "@typescript-eslint/no-floating-promises": "warn",  | 
 | 102 | +    "@typescript-eslint/no-for-in-array": "warn",  | 
 | 103 | +    "@typescript-eslint/no-implied-eval": "warn",  | 
 | 104 | +    "@typescript-eslint/no-inferrable-types": "warn",  | 
 | 105 | +    "@typescript-eslint/no-misused-new": "warn",  | 
 | 106 | +    "@typescript-eslint/no-misused-promises": "warn",  | 
 | 107 | +    "@typescript-eslint/no-namespace": "warn",  | 
 | 108 | +    "@typescript-eslint/no-non-null-asserted-optional-chain": "warn",  | 
 | 109 | +    "@typescript-eslint/no-non-null-assertion": "warn",  | 
 | 110 | +    "@typescript-eslint/no-parameter-properties": "off",  | 
 | 111 | +    "@typescript-eslint/no-this-alias": "warn",  | 
 | 112 | +    "@typescript-eslint/no-unnecessary-type-assertion": "warn",  | 
 | 113 | +    "@typescript-eslint/no-unsafe-assignment": "warn",  | 
 | 114 | +    "@typescript-eslint/no-unsafe-call": "warn",  | 
 | 115 | +    "@typescript-eslint/no-unsafe-member-access": "off",  | 
 | 116 | +    "@typescript-eslint/no-unsafe-return": "warn",  | 
 | 117 | +    "@typescript-eslint/no-unused-expressions": "warn",  | 
 | 118 | +    "@typescript-eslint/no-unused-vars": "warn",  | 
 | 119 | +    "@typescript-eslint/no-use-before-define": "off",  | 
 | 120 | +    "@typescript-eslint/no-var-requires": "warn",  | 
 | 121 | +    "@typescript-eslint/prefer-as-const": "warn",  | 
 | 122 | +    "@typescript-eslint/prefer-for-of": "warn",  | 
 | 123 | +    "@typescript-eslint/prefer-function-type": "warn",  | 
 | 124 | +    "@typescript-eslint/prefer-namespace-keyword": "warn",  | 
 | 125 | +    "@typescript-eslint/prefer-regexp-exec": "off",  | 
 | 126 | +    "@typescript-eslint/quotes": [  | 
 | 127 | +      "off",  | 
 | 128 | +      {  | 
 | 129 | +        "avoidEscape": true  | 
 | 130 | +      }  | 
 | 131 | +    ],  | 
 | 132 | +    "@typescript-eslint/require-await": "warn",  | 
 | 133 | +    "@typescript-eslint/restrict-plus-operands": "warn",  | 
 | 134 | +    "@typescript-eslint/restrict-template-expressions": "warn",  | 
 | 135 | +    "@typescript-eslint/semi": [  | 
 | 136 | +      "warn",  | 
 | 137 | +      "always"  | 
 | 138 | +    ],  | 
 | 139 | +    "@typescript-eslint/triple-slash-reference": [  | 
 | 140 | +      "warn",  | 
 | 141 | +      {  | 
 | 142 | +        "path": "always",  | 
 | 143 | +        "types": "prefer-import",  | 
 | 144 | +        "lib": "always"  | 
 | 145 | +      }  | 
 | 146 | +    ],  | 
 | 147 | +    "@typescript-eslint/type-annotation-spacing": "warn",  | 
 | 148 | +    "@typescript-eslint/unbound-method": "warn",  | 
 | 149 | +    "@typescript-eslint/unified-signatures": "warn",  | 
 | 150 | +    "arrow-body-style": "warn",  | 
 | 151 | +    "arrow-parens": [  | 
 | 152 | +      "warn",  | 
 | 153 | +      "always"  | 
 | 154 | +    ],  | 
 | 155 | +    "brace-style": [  | 
 | 156 | +      "off",  | 
 | 157 | +      "1tbs"  | 
 | 158 | +    ],  | 
 | 159 | +    "comma-dangle": "off",  | 
 | 160 | +    "complexity": "off",  | 
 | 161 | +    "constructor-super": "warn",  | 
 | 162 | +    "curly": "warn",  | 
 | 163 | +    "eol-last": "warn",  | 
 | 164 | +    "eqeqeq": [  | 
 | 165 | +      "warn",  | 
 | 166 | +      "smart"  | 
 | 167 | +    ],  | 
 | 168 | +    "guard-for-in": "warn",  | 
 | 169 | +    "id-blacklist": [  | 
 | 170 | +      "warn",  | 
 | 171 | +      "any",  | 
 | 172 | +      "Number",  | 
 | 173 | +      "number",  | 
 | 174 | +      "String",  | 
 | 175 | +      "string",  | 
 | 176 | +      "Boolean",  | 
 | 177 | +      "boolean",  | 
 | 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", "never"],  | 
 | 221 | +    "one-var": [  | 
 | 222 | +      "warn",  | 
 | 223 | +      "never"  | 
 | 224 | +    ],  | 
 | 225 | +    "prefer-arrow/prefer-arrow-functions": "off",  | 
 | 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