From ce3da919593bc0fbf1fd1ded5225c0ec62a06612 Mon Sep 17 00:00:00 2001 From: Pierre-Gilles Leymarie Date: Fri, 14 Oct 2022 14:21:22 +0700 Subject: [PATCH] Add eslint check on it.only/describe.only --- server/.eslintrc.json | 5 +++-- server/package-lock.json | 27 +++++++++++++++++++++++++++ server/package.json | 1 + 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/server/.eslintrc.json b/server/.eslintrc.json index bebee10d03..00281ed46b 100644 --- a/server/.eslintrc.json +++ b/server/.eslintrc.json @@ -1,5 +1,5 @@ { - "plugins": ["jsdoc", "require-jsdoc", "no-call"], + "plugins": ["jsdoc", "require-jsdoc", "no-call", "mocha"], "extends": ["airbnb-base", "plugin:jsdoc/recommended", "prettier"], "parserOptions": { "ecmaVersion": 2018 @@ -124,7 +124,8 @@ "require-jsdoc": 2, "no-call/no-call": [2, ["queryInterface.removeColumn", "queryInterface.changeColumn"]], "no-useless-concat": "error", - "prefer-template": "error" + "prefer-template": "error", + "mocha/no-exclusive-tests": "error" }, "overrides": [ { diff --git a/server/package-lock.json b/server/package-lock.json index 731ea943bd..c6cf6da716 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -4942,6 +4942,27 @@ "lodash": "^4.17.11" } }, + "eslint-plugin-mocha": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.1.0.tgz", + "integrity": "sha512-xLqqWUF17llsogVOC+8C6/jvQ+4IoOREbN7ZCHuOHuD6cT5cDD4h7f2LgsZuzMAiwswWE21tO7ExaknHVDrSkw==", + "dev": true, + "requires": { + "eslint-utils": "^3.0.0", + "rambda": "^7.1.0" + }, + "dependencies": { + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^2.0.0" + } + } + } + }, "eslint-plugin-no-call": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/eslint-plugin-no-call/-/eslint-plugin-no-call-1.2.5.tgz", @@ -8982,6 +9003,12 @@ "inherits": "~2.0.3" } }, + "rambda": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/rambda/-/rambda-7.3.0.tgz", + "integrity": "sha512-RFVofZYaG2TaVcxjnM0ejdVWf/59rFq1f57OGnjP3GT/bthzFw0GVr5rkP9PKbVlEuF/Y7bOVPLfiiYfxq/EWQ==", + "dev": true + }, "randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", diff --git a/server/package.json b/server/package.json index eca3f5ae44..01ee645715 100644 --- a/server/package.json +++ b/server/package.json @@ -57,6 +57,7 @@ "eslint-config-prettier": "^4.3.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jsdoc": "^4.1.0", + "eslint-plugin-mocha": "^10.1.0", "eslint-plugin-no-call": "^1.2.5", "eslint-plugin-require-jsdoc": "^1.0.4", "jsdoc": "^3.6.10",