From 85ff2dce5ca03717d6fea2ed25c797da5449a890 Mon Sep 17 00:00:00 2001 From: Sander van Beek Date: Wed, 10 Jul 2019 11:21:59 +0200 Subject: [PATCH] Added recommended ruleset --- index.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 76cb7c1..109c0d0 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,26 @@ module.exports = { configs: { recommended: { rules: { - 'mocha/no-exclusive-tests': 2 + 'mocha/handle-done-callback': 'error', + 'mocha/max-top-level-suites': ['error', {limit: 1}], + 'mocha/no-exclusive-tests': 'warn', + 'mocha/no-global-tests': 'error', + 'mocha/no-hooks': 'off', + 'mocha/no-hooks-for-single-case': 'warn', + 'mocha/no-identical-title': 'error', + 'mocha/no-mocha-arrows': 'error', + 'mocha/no-nested-tests': 'error', + 'mocha/no-pending-tests': 'warn', + 'mocha/no-return-and-callback': 'error', + 'mocha/no-setup-in-describe': 'error', + 'mocha/no-sibling-hooks': 'error', + 'mocha/no-skipped-tests': 'warn', + 'mocha/no-synchronous-tests': 'off', + 'mocha/no-top-level-hooks': 'warn', + 'mocha/prefer-arrow-callback': 'off', + 'mocha/valid-suite-description': 'off', + 'mocha/valid-test-description': 'off', + 'mocha/no-async-describe': 'error', } } }