aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
Diffstat (limited to 'vnext')
-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 e3d8a85c4..74fc921af 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 bfdbb2078..b600383ce 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 1ed122d62..5d1e401d7 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"