aboutsummaryrefslogtreecommitdiff
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
parentea1b9039ae221355cfaabb16fc43dab5917bea56 (diff)
eslint-plugin-jest
-rw-r--r--vnext/.eslintrc15
-rw-r--r--vnext/package.json1
-rw-r--r--vnext/yarn.lock4
3 files changed, 17 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"
}
}
diff --git a/vnext/package.json b/vnext/package.json
index bfdbb207..b600383c 100644
--- a/vnext/package.json
+++ b/vnext/package.json
@@ -26,6 +26,7 @@
"error-overlay-webpack-plugin": "^0.1.5",
"eslint": "^5.0.1",
"eslint-plugin-babel": "^5.1.0",
+ "eslint-plugin-jest": "^21.17.0",
"eslint-plugin-only-ascii": "^0.0.0",
"eslint-plugin-react": "^7.10.0",
"file-loader": "^1.1.11",
diff --git a/vnext/yarn.lock b/vnext/yarn.lock
index 1ed122d6..5d1e401d 100644
--- a/vnext/yarn.lock
+++ b/vnext/yarn.lock
@@ -2497,6 +2497,10 @@ eslint-plugin-babel@^5.1.0:
dependencies:
eslint-rule-composer "^0.3.0"
+eslint-plugin-jest@^21.17.0:
+ version "21.17.0"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-21.17.0.tgz#fdb00e2f9ff16987d6ebcf2c75c7add105760bbb"
+
eslint-plugin-only-ascii@^0.0.0:
version "0.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-only-ascii/-/eslint-plugin-only-ascii-0.0.0.tgz#452dd8d79a086b385160735d895cb4ce4332ed65"