From c7305db8c89392290da27dff2dba8b1f9a8020ad Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Thu, 8 Mar 2018 15:49:34 -0500 Subject: [PATCH] Disallow exclusive tests, i.e. `.only` --- .eslintrc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 124289e01ec8..5f0bcfb1e202 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -12,6 +12,7 @@ module.exports = { ], plugins: [ + 'mocha', 'more', ], @@ -33,6 +34,9 @@ module.exports = { ignoreUrls: true, }], + // prevents us from accidentally checking in exclusive tests (`.only`): + 'mocha/no-exclusive-tests': 'error', + // encourage consistent use of `async` / `await` instead of `then` 'more/no-then': 'error',