From 378f97e112a10e648150379a56fdf25a7bd10ff0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 6 Jul 2018 02:11:53 +0300 Subject: eslint-plugin-jest --- vnext/.eslintrc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'vnext/.eslintrc') diff --git a/vnext/.eslintrc b/vnext/.eslintrc index e3d8a85c..74fc921a 100644 --- a/vnext/.eslintrc +++ b/vnext/.eslintrc @@ -1,7 +1,8 @@ { "extends": [ "eslint:recommended", - "plugin:react/recommended" + "plugin:react/recommended", + "plugin:jest/recommended" ], "parser": "babel-eslint", "parserOptions": { @@ -12,11 +13,13 @@ "env": { "browser": true, "node": true, - "es6": true + "es6": true, + "jest/globals": true }, "plugins": [ "babel", "react", + "jest", "only-ascii" ], "rules": { @@ -51,6 +54,12 @@ "no-unused-vars": "off", "no-useless-escape": "off", - "only-ascii/only-ascii": ["warn", { "allowedChars": "✓" }] + "only-ascii/only-ascii": ["warn", { "allowedChars": "✓" }], + + "jest/no-disabled-tests": "warn", + "jest/no-focused-tests": "error", + "jest/no-identical-title": "error", + "jest/prefer-to-have-length": "warn", + "jest/valid-expect": "error" } } -- cgit v1.2.3