git.delta.rocks / unique-network / refs/commits / 6fb759d0245c

difftreelog

source

tests/.eslintrc.json3.0 KiBsourcehistory
1{2    "env": {3        "browser": true,4        "es2020": true5    },6    "extends": [7        "eslint:recommended",8        "plugin:@typescript-eslint/recommended"9    ],10    "parser": "@typescript-eslint/parser",11    "parserOptions": {12        "ecmaVersion": 11,13        "sourceType": "module",14        "project": "**/tsconfig.json"15    },16    "plugins": [17        "@typescript-eslint",18        "mocha"19    ],20    "rules": {21        "indent": [22            "error",23            2,24            {25                "SwitchCase": 126            }27        ],28        "no-trailing-spaces": "warn",29        "function-call-argument-newline": [30            "error",31            "consistent"32        ],33        "function-paren-newline": [34            "error",35            "multiline"36        ],37        "linebreak-style": [38            "error",39            "unix"40        ],41        "quotes": [42            "error",43            "single",44            {45                "avoidEscape": true46            }47        ],48        "require-await": 2,49        "mocha/no-async-describe": "error",50        "mocha/no-nested-tests": "error",51        "mocha/no-synchronous-tests": "error",52        "semi": [53            "error",54            "always"55        ],56        "@typescript-eslint/explicit-module-boundary-types": "off",57        "comma-dangle": [58            "error",59            "always-multiline"60        ],61        "no-unused-vars": "off",62        "@typescript-eslint/no-empty-function": "off",63        "@typescript-eslint/no-non-null-assertion": "off",64        "@typescript-eslint/no-explicit-any": "off",65        "@typescript-eslint/no-unused-vars": [66            "warn",67            {68                "varsIgnorePattern": "_.+",69                "argsIgnorePattern": "_.+"70            }71        ],72        "no-async-promise-executor": "warn",73        "@typescript-eslint/no-empty-interface": "off",74        "prefer-const": [75            "error",76            {77                "destructuring": "all"78            }79        ],80        "@typescript-eslint/ban-ts-comment": "off",81        "object-curly-spacing": "warn",82        "arrow-spacing": "warn",83        "array-bracket-spacing": "warn",84        "template-curly-spacing": "warn",85        "space-in-parens": "warn",86        "@typescript-eslint/naming-convention": [87            "warn",88            {89                "selector": "default",90                "format": [91                    "camelCase"92                ],93                "leadingUnderscore": "allow",94                "trailingUnderscore": "allow"95            },96            {97                "selector": "variable",98                "format": [99                    "camelCase",100                    "UPPER_CASE"101                ],102                "leadingUnderscore": "allow",103                "trailingUnderscore": "allow"104            },105            {106                "selector": "typeLike",107                "format": [108                    "PascalCase"109                ]110            },111            {112                "selector": "memberLike",113                "format": null114            }115        ]116    }117}