From 09587ff61b216deb58ef55332b44027afef5f399 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Mon, 2 Oct 2023 18:52:46 -0700 Subject: [PATCH] Satisfy eslint warnings about jest --- .eslintrc.js | 8 ++++++-- package.json | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 8dbbf4526..1877e9ee0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,12 +2,16 @@ module.exports = { "env": { "browser": true, "jquery": true, - "es6": true + "es6": true, + "jest/globals": true }, "extends": "eslint:recommended", "parserOptions": { "sourceType": "module" }, "rules": { - } + }, + "plugins": [ + "jest" + ] }; diff --git a/package.json b/package.json index 28c367353..6f8bd6ea6 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "babel-loader": "^9.1.2", "css-loader": "^6.7.3", "eslint": "^8.38.0", + "eslint-plugin-jest": "^27.4.2", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "mini-css-extract-plugin": "^2.7.5",