From 584611ea3e3380a038e61bfc2ecb0445496b3bf9 Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Mon, 4 May 2020 10:59:51 -0700 Subject: [PATCH] fix: prohibit calls for it.only and describe.only --- .eslintrc.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index e6e2e426..3700cc63 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -17,7 +17,18 @@ "eol-last": "error", "prefer-arrow-callback": "error", "no-trailing-spaces": "error", - "quotes": ["warn", "single", { "avoidEscape": true }] + "quotes": ["warn", "single", { "avoidEscape": true }], + "no-restricted-properties": [ + "error", + { + "object": "describe", + "property": "only" + }, + { + "object": "it", + "property": "only" + } + ] }, "overrides": [ {