From 0c04562e3f6f674c7ea5408b3e6415f6dc65fe86 Mon Sep 17 00:00:00 2001 From: Kasper Nilsson Date: Fri, 18 Aug 2017 15:53:43 -0700 Subject: [PATCH] Catch test.only and suite.only with linter Change-Id: I7f5e493bc3df034757e01f15b8503523de896879 --- polygerrit-ui/app/.eslintrc.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/polygerrit-ui/app/.eslintrc.json b/polygerrit-ui/app/.eslintrc.json index 62367818fb..7cb1a11b5a 100644 --- a/polygerrit-ui/app/.eslintrc.json +++ b/polygerrit-ui/app/.eslintrc.json @@ -43,6 +43,17 @@ ], "new-cap": ["error", { "capIsNewExceptions": ["Polymer"] }], "no-console": "off", + "no-restricted-syntax": [ + "error", + { + "selector": "ExpressionStatement > CallExpression > MemberExpression[object.name='test'][property.name='only']", + "message": "Remove test.only." + }, + { + "selector": "ExpressionStatement > CallExpression > MemberExpression[object.name='suite'][property.name='only']", + "message": "Remove suite.only." + } + ], "no-undef": "off", "no-useless-escape": "off", "no-var": "error",