git.delta.rocks / unique-network / refs/commits / d16d7f8bc42e

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    },15    "plugins": [16        "@typescript-eslint",17        "mocha"18    ],19    "rules": {20        "indent": [21            "error",22            2,23            {24                "SwitchCase": 125            }26        ],27        "function-call-argument-newline": [28            "error",29            "consistent"30        ],31        "function-paren-newline": [32            "error",33            "multiline"34        ],35        "linebreak-style": [36            "error",37            "unix"38        ],39        "quotes": [40            "error",41            "single",42            {43                "avoidEscape": true44            }45        ],46        "require-await": 2,47        "mocha/no-async-describe": "error",48        "mocha/no-nested-tests": "error",49        "mocha/no-synchronous-tests": "error",50        "semi": [51            "error",52            "always"53        ],54        "@typescript-eslint/explicit-module-boundary-types": "off",55        "comma-dangle": [56            "error",57            "always-multiline"58        ],59        "no-unused-vars": "off",60        "@typescript-eslint/no-empty-function": "off",61        "@typescript-eslint/no-non-null-assertion": "off",62        "@typescript-eslint/no-explicit-any": "off",63        "@typescript-eslint/no-unused-vars": [64            "warn",65            {66                "varsIgnorePattern": "_.+",67                "argsIgnorePattern": "_.+"68            }69        ],70        "no-async-promise-executor": "warn",71        "@typescript-eslint/no-empty-interface": "off",72        "prefer-const": [73            "error",74            {75                "destructuring": "all"76            }77        ],78        "@typescript-eslint/ban-ts-comment": "off",79        "object-curly-spacing": "warn",80        "arrow-spacing": "warn",81        "array-bracket-spacing": "warn",82        "template-curly-spacing": "warn",83        "space-in-parens": "warn",84        "@typescript-eslint/naming-convention": [85            "warn",86            {87                "selector": "default",88                "format": [89                    "camelCase"90                ],91                "leadingUnderscore": "allow",92                "trailingUnderscore": "allow"93            },94            {95                "selector": "variable",96                "format": [97                    "camelCase",98                    "UPPER_CASE"99                ],100                "leadingUnderscore": "allow",101                "trailingUnderscore": "allow"102            },103            {104                "selector": "typeLike",105                "format": [106                    "PascalCase"107                ]108            },109            {110                "selector": "memberLike",111                "format": null112            }113        ]114    }115}