aboutsummaryrefslogtreecommitdiff
path: root/vnext/.eslintrc
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-06 02:11:53 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit378f97e112a10e648150379a56fdf25a7bd10ff0 (patch)
treefab1710c0390927ea2bf7aab3abccac21f652783 /vnext/.eslintrc
parentea1b9039ae221355cfaabb16fc43dab5917bea56 (diff)
eslint-plugin-jest
Diffstat (limited to 'vnext/.eslintrc')
-rw-r--r--vnext/.eslintrc15
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"
}
}