diff options
author | Vitaly Takmazov | 2018-07-06 02:11:53 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | 378f97e112a10e648150379a56fdf25a7bd10ff0 (patch) | |
tree | fab1710c0390927ea2bf7aab3abccac21f652783 /vnext/.eslintrc | |
parent | ea1b9039ae221355cfaabb16fc43dab5917bea56 (diff) |
eslint-plugin-jest
Diffstat (limited to 'vnext/.eslintrc')
-rw-r--r-- | vnext/.eslintrc | 15 |
1 files changed, 12 insertions, 3 deletions
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" } } |