diff --git a/client/.eslintrc.js b/client/.eslintrc.js index 251f3e6d..2fd53585 100644 --- a/client/.eslintrc.js +++ b/client/.eslintrc.js @@ -103,5 +103,12 @@ module.exports = { caughtErrorsIgnorePattern: '^_', }, ], + 'no-restricted-syntax': [ + 'error', + { + selector: "CallExpression[callee.object.name=/^(describe|it|test)$/][callee.property.name='only']", + message: 'Found .only in test. Please remove it before committing.', + }, + ], }, };