diff --git a/.eslintrc b/.eslintrc index 79e7bc966..4873bc0dc 100644 --- a/.eslintrc +++ b/.eslintrc @@ -4,7 +4,8 @@ "plugin:react/recommended" ], "plugins": [ - "import" + "import", + "mocha" ], "globals": { "describe": true, @@ -20,6 +21,7 @@ "node": true }, "rules": { + "mocha/no-exclusive-tests": "error", "func-names": "off", "global-require": "off", "new-cap": ["error", { @@ -48,5 +50,10 @@ ], "linebreak-style": 0, "no-param-reassign": "off" + }, + "settings": { + "mocha/additionalTestFunctions": [ + "describeModule" + ] } } diff --git a/package.json b/package.json index 63d93b65b..7bf1164da 100644 --- a/package.json +++ b/package.json @@ -99,6 +99,7 @@ "eslint-loader": "1.9.0", "eslint-plugin-html": "3.2.2", "eslint-plugin-import": "2.7.0", + "eslint-plugin-mocha": "4.11.0", "eslint-plugin-react": "7.4.0", "exports-loader": "0.6.4", "extract-text-webpack-plugin": "3.0.0",