module.exports = { "extends": [ "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking" ], "parser": "@typescript-eslint/parser", "parserOptions": { "project": "tsconfig.json", "sourceType": "module" }, "plugins": [ "eslint-plugin-jsdoc", "@typescript-eslint", "@stylistic/js", ], "root": true, "rules": { "@stylistic/js/arrow-parens": [ "error", "as-needed" ], "@stylistic/js/block-spacing": "error", "@stylistic/js/brace-style": [ "error", "1tbs", { "allowSingleLine": true } ], "@typescript-eslint/adjacent-overload-signatures": "error", "@typescript-eslint/array-type": [ "error", { "default": "array" } ], "@typescript-eslint/ban-types": [ "error", { "types": { "Object": { "message": "Avoid using the `Object` type. Did you mean `object`?" }, "Function": { "message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`." }, "Boolean": { "message": "Avoid using the `Boolean` type. Did you mean `boolean`?" }, "Number": { "message": "Avoid using the `Number` type. Did you mean `number`?" }, "String": { "message": "Avoid using the `String` type. Did you mean `string`?" }, "Symbol": { "message": "Avoid using the `Symbol` type. Did you mean `symbol`?" } } } ], "@typescript-eslint/dot-notation": "error", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/member-delimiter-style": [ "error", { "multiline": { "delimiter": "semi", "requireLast": true }, "singleline": { "delimiter": "semi", "requireLast": false } } ], "@typescript-eslint/member-ordering": [ "error", { "default": ["static-field", "instance-field", "constructor", "static-method", "instance-method"] } ], "@typescript-eslint/naming-convention": [ "error", { "selector": "variable", "format": [ "camelCase", "UPPER_CASE" ], "leadingUnderscore": "forbid", "trailingUnderscore": "forbid" } ], "@typescript-eslint/no-duplicate-enum-values": "off", "@typescript-eslint/no-empty-function": "error", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-floating-promises": "error", "@typescript-eslint/no-misused-new": "error", "@typescript-eslint/no-namespace": "error", "@typescript-eslint/no-parameter-properties": "off", "@typescript-eslint/no-shadow": [ "error", { "hoist": "all" } ], "@typescript-eslint/no-unnecessary-type-assertion": "off", "@typescript-eslint/no-unsafe-argument": "off", "@typescript-eslint/no-unsafe-enum-comparison": "off", "@typescript-eslint/no-unused-expressions": "error", "@typescript-eslint/no-use-before-define": "off", "@typescript-eslint/no-var-requires": "error", "@typescript-eslint/prefer-for-of": "error", "@typescript-eslint/prefer-function-type": "error", "@typescript-eslint/prefer-namespace-keyword": "error", "@typescript-eslint/quotes": [ "error", "single" ], "@typescript-eslint/require-await": "off", "@typescript-eslint/semi": [ "error", "always" ], "@typescript-eslint/triple-slash-reference": [ "error", { "path": "always", "types": "prefer-import", "lib": "always" } ], "@typescript-eslint/typedef": "off", "@typescript-eslint/unbound-method": "off", "@typescript-eslint/unified-signatures": "error", "camelcase": "error", "comma-dangle": ["error", "never"], "complexity": "off", "constructor-super": "error", "curly": [ "error", "multi-line" ], "dot-notation": "off", "eol-last": ["error", "always"], "eqeqeq": [ "error", "always" ], "guard-for-in": "error", "indent": [ "error", 4, { "SwitchCase": 1 } ], "id-denylist": "error", "id-match": "error", "jsdoc/check-alignment": "error", "jsdoc/check-indentation": "error", "linebreak-style": [ "error", "unix" ], "max-classes-per-file": "off", "max-len": "off", "new-parens": "error", "no-bitwise": "off", "no-caller": "error", "no-cond-assign": "error", "no-console": "error", "no-debugger": "error", "no-empty": "error", "no-empty-function": "off", "no-eval": "error", "no-fallthrough": "off", "no-invalid-this": "off", "no-irregular-whitespace": "error", "no-new-wrappers": "error", "no-shadow": "off", "no-throw-literal": "error", "no-trailing-spaces": "error", "no-undef-init": "error", "no-underscore-dangle": "off", "no-unsafe-finally": "error", "no-unused-expressions": "off", "no-unused-labels": "error", "no-use-before-define": "off", "no-var": "error", "object-shorthand": "off", "one-var": [ "error", "never" ], "prefer-const": "error", "radix": "error", "sort-keys": "off", "spaced-comment": [ "error", "always", { "markers": [ "/" ] } ], "use-isnan": "error", "valid-typeof": "off" } };