difftreelog
Add eslint-plugin-mocha
in: master
3 files changed
tests/.eslintrc.jsondiffbeforeafterboth--- a/tests/.eslintrc.json
+++ b/tests/.eslintrc.json
@@ -13,7 +13,8 @@
"sourceType": "module"
},
"plugins": [
- "@typescript-eslint"
+ "@typescript-eslint",
+ "mocha"
],
"rules": {
"indent": [
@@ -43,6 +44,9 @@
}
],
"require-await": 2,
+ "mocha/no-async-describe": "error",
+ "mocha/no-nested-tests": "error",
+ "mocha/no-synchronous-tests": "error",
"semi": [
"error",
"always"
tests/package.jsondiffbeforeafterboth14 "@typescript-eslint/parser": "^5.40.1",14 "@typescript-eslint/parser": "^5.40.1",15 "chai": "^4.3.6",15 "chai": "^4.3.6",16 "eslint": "^8.25.0",16 "eslint": "^8.25.0",17 "eslint-plugin-mocha": "^10.1.0",17 "mocha": "^10.1.0",18 "mocha": "^10.1.0",18 "ts-node": "^10.9.1",19 "ts-node": "^10.9.1",19 "typescript": "^4.8.4"20 "typescript": "^4.8.4"tests/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"