.eslintrc.js 7.08 KiB
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint. 
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! 💖
module.exports = {
    "env": {
        "browser": true,
        "es6": true,
        "node": true
    "extends": [
        "plugin:@typescript-eslint/recommended",
        "plugin:@typescript-eslint/recommended-requiring-type-checking",
        "prettier"
    "parser": "@typescript-eslint/parser",
    "parserOptions": {
        "project": "tsconfig.json",
        "sourceType": "module"
    "plugins": [
        "eslint-plugin-jsdoc",
        "eslint-plugin-prefer-arrow",
        "@typescript-eslint"
    "root": true,
    "rules": {
        "@typescript-eslint/adjacent-overload-signatures": "warn",
        "@typescript-eslint/array-type": [
            "warn",
                "default": "array"
        "@typescript-eslint/await-thenable": "error",
        "@typescript-eslint/ban-ts-comment": "error",
        "@typescript-eslint/ban-types": [
            "warn",
                "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`?"
7172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
"@typescript-eslint/consistent-type-assertions": "warn", "@typescript-eslint/dot-notation": "warn", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/naming-convention": "warn", "@typescript-eslint/no-array-constructor": "error", "@typescript-eslint/no-empty-function": "warn", "@typescript-eslint/no-empty-interface": "warn", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-extra-non-null-assertion": "error", "@typescript-eslint/no-extra-semi": "error", "@typescript-eslint/no-floating-promises": "error", "@typescript-eslint/no-for-in-array": "error", "@typescript-eslint/no-implied-eval": "error", "@typescript-eslint/no-inferrable-types": "error", "@typescript-eslint/no-loss-of-precision": "error", "@typescript-eslint/no-misused-new": "warn", "@typescript-eslint/no-misused-promises": "error", "@typescript-eslint/no-namespace": "warn", "@typescript-eslint/no-non-null-asserted-optional-chain": "error", "@typescript-eslint/no-non-null-assertion": "warn", "@typescript-eslint/no-parameter-properties": "off", "@typescript-eslint/no-shadow": [ "warn", { "hoist": "all" } ], "@typescript-eslint/no-this-alias": "error", "@typescript-eslint/no-unnecessary-type-assertion": "error", "@typescript-eslint/no-unnecessary-type-constraint": "error", "@typescript-eslint/no-unsafe-argument": "error", "@typescript-eslint/no-unsafe-assignment": "error", "@typescript-eslint/no-unsafe-call": "error", "@typescript-eslint/no-unsafe-member-access": "error", "@typescript-eslint/no-unsafe-return": "error", "@typescript-eslint/no-unused-expressions": "warn", "@typescript-eslint/no-unused-vars": "warn", "@typescript-eslint/no-use-before-define": "off", "@typescript-eslint/no-var-requires": "warn", "@typescript-eslint/prefer-as-const": "error", "@typescript-eslint/prefer-for-of": "warn", "@typescript-eslint/prefer-function-type": "warn", "@typescript-eslint/prefer-namespace-keyword": "warn", "@typescript-eslint/require-await": "error", "@typescript-eslint/restrict-plus-operands": "error", "@typescript-eslint/restrict-template-expressions": "error", "@typescript-eslint/triple-slash-reference": [ "warn", { "path": "always", "types": "prefer-import", "lib": "always" } ], "@typescript-eslint/typedef": "off", "@typescript-eslint/unbound-method": "error", "@typescript-eslint/unified-signatures": "warn", "comma-dangle": "off", "complexity": "off", "constructor-super": "warn", "dot-notation": "warn", "eqeqeq": [ "warn", "smart" ], "guard-for-in": "warn", "id-denylist": "warn", "id-match": "warn", "jsdoc/check-alignment": "warn",
141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
"jsdoc/check-indentation": "warn", "jsdoc/newline-after-description": "warn", "max-classes-per-file": [ "warn", 1 ], "new-parens": "warn", "no-array-constructor": "off", "no-bitwise": "warn", "no-caller": "warn", "no-cond-assign": "warn", "no-console": "warn", "no-debugger": "warn", "no-empty": "warn", "no-empty-function": "warn", "no-eval": "warn", "no-extra-semi": "off", "no-fallthrough": "off", "no-implied-eval": "off", "no-invalid-this": "off", "no-loss-of-precision": "off", "no-new-wrappers": "warn", "no-shadow": "warn", "no-throw-literal": "warn", "no-trailing-spaces": "warn", "no-undef-init": "warn", "no-underscore-dangle": "warn", "no-unsafe-finally": "warn", "no-unused-expressions": "warn", "no-unused-labels": "warn", "no-unused-vars": "off", "no-use-before-define": "off", "no-var": "warn", "object-shorthand": "warn", "one-var": [ "warn", "never" ], "prefer-arrow/prefer-arrow-functions": "warn", "prefer-const": "warn", "radix": "warn", "require-await": "off", "spaced-comment": [ "warn", "always", { "markers": [ "/" ] } ], "use-isnan": "warn", "valid-typeof": "off" } };