git.delta.rocks / unique-network / refs/commits / 9fdc6b8cf2c3

difftreelog

Add eslint-plugin-mocha

Max Andreev2022-10-27parent: #785c8f5.patch.diff
in: master

3 files changed

modifiedtests/.eslintrc.jsondiffbeforeafterboth
before · tests/.eslintrc.json
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        "require-await": 2,46        "semi": [47            "error",48            "always"49        ],50        "@typescript-eslint/explicit-module-boundary-types": "off",51        "comma-dangle": [52            "error",53            "always-multiline"54        ],55        "no-unused-vars": "off",56        "@typescript-eslint/no-empty-function": "off",57        "@typescript-eslint/no-non-null-assertion": "off",58        "@typescript-eslint/no-explicit-any": "off",59        "@typescript-eslint/no-unused-vars": [60            "warn",61            {62                "varsIgnorePattern": "_.+",63                "argsIgnorePattern": "_.+"64            }65        ],66        "no-async-promise-executor": "warn",67        "@typescript-eslint/no-empty-interface": "off",68        "prefer-const": [69            "error",70            {71                "destructuring": "all"72            }73        ],74        "@typescript-eslint/ban-ts-comment": "off",75        "object-curly-spacing": "warn",76        "arrow-spacing": "warn",77        "array-bracket-spacing": "warn",78        "template-curly-spacing": "warn",79        "space-in-parens": "warn",80        "@typescript-eslint/naming-convention": [81            "warn",82            {83                "selector": "default",84                "format": [85                    "camelCase"86                ],87                "leadingUnderscore": "allow",88                "trailingUnderscore": "allow"89            },90            {91                "selector": "variable",92                "format": [93                    "camelCase",94                    "UPPER_CASE"95                ],96                "leadingUnderscore": "allow",97                "trailingUnderscore": "allow"98            },99            {100                "selector": "typeLike",101                "format": [102                    "PascalCase"103                ]104            },105            {106                "selector": "memberLike",107                "format": null108            }109        ]110    }111}
modifiedtests/package.jsondiffbeforeafterboth
--- a/tests/package.json
+++ b/tests/package.json
@@ -14,6 +14,7 @@
     "@typescript-eslint/parser": "^5.40.1",
     "chai": "^4.3.6",
     "eslint": "^8.25.0",
+    "eslint-plugin-mocha": "^10.1.0",
     "mocha": "^10.1.0",
     "ts-node": "^10.9.1",
     "typescript": "^4.8.4"
modifiedtests/yarn.lockdiffbeforeafterboth
--- a/tests/yarn.lock
+++ b/tests/yarn.lock
@@ -2141,6 +2141,14 @@
   resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
   integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==
 
+eslint-plugin-mocha@^10.1.0:
+  version "10.1.0"
+  resolved "https://registry.yarnpkg.com/eslint-plugin-mocha/-/eslint-plugin-mocha-10.1.0.tgz#69325414f875be87fb2cb00b2ef33168d4eb7c8d"
+  integrity sha512-xLqqWUF17llsogVOC+8C6/jvQ+4IoOREbN7ZCHuOHuD6cT5cDD4h7f2LgsZuzMAiwswWE21tO7ExaknHVDrSkw==
+  dependencies:
+    eslint-utils "^3.0.0"
+    rambda "^7.1.0"
+
 eslint-scope@^5.1.1:
   version "5.1.1"
   resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c"
@@ -4014,6 +4022,11 @@
   resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-5.1.1.tgz#366493e6b3e42a3a6885e2e99d18f80fb7a8c932"
   integrity sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==
 
+rambda@^7.1.0:
+  version "7.3.0"
+  resolved "https://registry.yarnpkg.com/rambda/-/rambda-7.3.0.tgz#90e440ead53030a216093865d8d97997a80868ca"
+  integrity sha512-RFVofZYaG2TaVcxjnM0ejdVWf/59rFq1f57OGnjP3GT/bthzFw0GVr5rkP9PKbVlEuF/Y7bOVPLfiiYfxq/EWQ==
+
 randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5, randombytes@^2.1.0:
   version "2.1.0"
   resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a"