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

difftreelog

source

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