From 071c33ceef0e3765166aaebf6ed4698167ac0f98 Mon Sep 17 00:00:00 2001 From: Brian Chen Date: Mon, 8 Jun 2020 18:53:01 -0700 Subject: [PATCH] fix: prohibit calls for it.only and describe.only (#499) --- .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": [ {