diff --git a/.eslintrc.json b/.eslintrc.json index 0bea4d3..53d6a3d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,7 +2,8 @@ "root": true, "parser": "@typescript-eslint/parser", "plugins": [ - "@typescript-eslint" + "@typescript-eslint", + "eslint-plugin-jest" ], "extends": [ "eslint:recommended", @@ -12,7 +13,8 @@ "rules": { "quotes": ["error", "double"], "indent": ["error", 4], - "semi": "error" + "semi": "error", + "no-undef": "off" }, "env": { "jest/globals": true diff --git a/package-lock.json b/package-lock.json index 04cf67e..f82eb4a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1873,6 +1873,15 @@ } } }, + "eslint-plugin-jest": { + "version": "24.1.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-24.1.3.tgz", + "integrity": "sha512-dNGGjzuEzCE3d5EPZQ/QGtmlMotqnYWD/QpCZ1UuZlrMAdhG5rldh0N0haCvhGnUkSeuORS5VNROwF9Hrgn3Lg==", + "dev": true, + "requires": { + "@typescript-eslint/experimental-utils": "^4.0.1" + } + }, "eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", diff --git a/package.json b/package.json index 921ddf3..3ae8e62 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "@typescript-eslint/parser": "^4.13.0", "eslint": "^7.18.0", "jest": "^26.6.3", - "typescript": "^4.1.3" + "typescript": "^4.1.3", + "eslint-plugin-jest": "^24.1.3" } }