diff --git a/js/tests/unit/.eslintrc.json b/js/tests/unit/.eslintrc.json index 06fad565ed..3153849cf0 100644 --- a/js/tests/unit/.eslintrc.json +++ b/js/tests/unit/.eslintrc.json @@ -1,6 +1,7 @@ { "extends": [ - "../../../.eslintrc.json" + "../../../.eslintrc.json", + "plugin:qunit/recommended" ], "parserOptions": { "ecmaVersion": 5, diff --git a/package-lock.json b/package-lock.json index 835c324c3b..f8abf26ec6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4171,6 +4171,27 @@ } } }, + "eslint-plugin-qunit": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-qunit/-/eslint-plugin-qunit-6.2.0.tgz", + "integrity": "sha512-KvPmkIC2MHpfRxs/r8WUeeGkG6y+3qwSi2AZIBtjcM/YG6Z3k0GxW5Hbu3l7X0TDhljVCeBb9Q5puUkHzl83Mw==", + "dev": true, + "requires": { + "eslint-utils": "^3.0.0", + "requireindex": "^1.2.0" + }, + "dependencies": { + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^2.0.0" + } + } + } + }, "eslint-plugin-unicorn": { "version": "36.0.0", "resolved": "https://registry.npmjs.org/eslint-plugin-unicorn/-/eslint-plugin-unicorn-36.0.0.tgz", @@ -9584,6 +9605,12 @@ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, + "requireindex": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/requireindex/-/requireindex-1.2.0.tgz", + "integrity": "sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww==", + "dev": true + }, "requires-port": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", diff --git a/package.json b/package.json index cd30403b37..92927996a1 100644 --- a/package.json +++ b/package.json @@ -108,6 +108,7 @@ "eslint": "^7.32.0", "eslint-config-xo": "^0.38.0", "eslint-plugin-import": "^2.24.2", + "eslint-plugin-qunit": "^6.2.0", "eslint-plugin-unicorn": "^36.0.0", "find-unused-sass-variables": "^3.1.0", "glob": "^7.1.7",