From 2de4c5ef5ae543fc8942f7c8bc2879b259d7b339 Mon Sep 17 00:00:00 2001 From: alxndrsn Date: Tue, 14 Jan 2025 06:45:25 +0000 Subject: [PATCH] eslint: catch .only() calls in db-migration tests Because db-migration tests use a wrapper for mocha describe() calls, extra configuration is required to catch .only() calls. See: https://www.npmjs.com/package/eslint-plugin-no-only-tests#user-content-options --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index d1a9a5c6c..c64a114ea 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -28,7 +28,7 @@ "no-else-return": "off", "no-multiple-empty-lines": "off", "no-nested-ternary": "off", - "no-only-tests/no-only-tests": "error", + "no-only-tests/no-only-tests": [ "error", { "block": [ "describe", "it", "describeMigration" ] } ], "no-restricted-syntax": "off", "no-underscore-dangle": "off", "nonblock-statement-body-position": "off",