From 0fd162046167544a9141f72242c6e2375656a2f1 Mon Sep 17 00:00:00 2001 From: Ricardo Costa <48949546+ripecosta@users.noreply.github.com> Date: Wed, 14 Aug 2024 15:37:03 +0100 Subject: [PATCH] chore: update eslint-plugin-testing-library to v6 (#1792) * chore: update eslint-plugin-testing-library to v6 * chore: update lint-staged to v15.2.9 --- .eslintrc.json | 3 ++- package-lock.json | 28 ++++++++++++++-------------- package.json | 4 ++-- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index e82bdb64..dfae61bd 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -66,7 +66,8 @@ "globalThis": false }, "rules": { - "testing-library/no-node-access": ["error", { "allowContainerFirstChild": true }] + "testing-library/no-node-access": ["error", { "allowContainerFirstChild": true }], + "testing-library/no-manual-cleanup": "off" } } ] diff --git a/package-lock.json b/package-lock.json index bb62cc43..d6585ab6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,11 +49,11 @@ "eslint-plugin-jest-dom": "^5.4.0", "eslint-plugin-jsx-a11y": "^6.9.0", "eslint-plugin-react": "^7.35.0", - "eslint-plugin-testing-library": "^5.11.1", + "eslint-plugin-testing-library": "^6.3.0", "happy-dom": "^14.12.3", "husky": "^9.1.4", "i18next": "^23.12.2", - "lint-staged": "^15.2.8", + "lint-staged": "^15.2.9", "mkdirp": "^3.0.1", "prettier": "^3.3.3", "react": "^18.3.1", @@ -6277,9 +6277,9 @@ } }, "node_modules/eslint-plugin-testing-library": { - "version": "5.11.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.1.tgz", - "integrity": "sha512-5eX9e1Kc2PqVRed3taaLnAAqPZGEX75C+M/rXzUAI3wIg/ZxzUm1OVAwfe/O+vE+6YXOLetSe9g5GKD2ecXipw==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-6.3.0.tgz", + "integrity": "sha512-GYcEErTt6EGwE0bPDY+4aehfEBpB2gDBFKohir8jlATSUvzStEyzCx8QWB/14xeKc/AwyXkzScSzMHnFojkWrA==", "dev": true, "dependencies": { "@typescript-eslint/utils": "^5.58.0" @@ -8973,9 +8973,9 @@ "dev": true }, "node_modules/lint-staged": { - "version": "15.2.8", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.2.8.tgz", - "integrity": "sha512-PUWFf2zQzsd9EFU+kM1d7UP+AZDbKFKuj+9JNVTBkhUFhbg4MAt6WfyMMwBfM4lYqd4D2Jwac5iuTu9rVj4zCQ==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.2.9.tgz", + "integrity": "sha512-BZAt8Lk3sEnxw7tfxM7jeZlPRuT4M68O0/CwZhhaw6eeWu0Lz5eERE3m386InivXB64fp/mDID452h48tvKlRQ==", "dev": true, "dependencies": { "chalk": "~5.3.0", @@ -16718,9 +16718,9 @@ "requires": {} }, "eslint-plugin-testing-library": { - "version": "5.11.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-5.11.1.tgz", - "integrity": "sha512-5eX9e1Kc2PqVRed3taaLnAAqPZGEX75C+M/rXzUAI3wIg/ZxzUm1OVAwfe/O+vE+6YXOLetSe9g5GKD2ecXipw==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-testing-library/-/eslint-plugin-testing-library-6.3.0.tgz", + "integrity": "sha512-GYcEErTt6EGwE0bPDY+4aehfEBpB2gDBFKohir8jlATSUvzStEyzCx8QWB/14xeKc/AwyXkzScSzMHnFojkWrA==", "dev": true, "requires": { "@typescript-eslint/utils": "^5.58.0" @@ -18487,9 +18487,9 @@ "dev": true }, "lint-staged": { - "version": "15.2.8", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.2.8.tgz", - "integrity": "sha512-PUWFf2zQzsd9EFU+kM1d7UP+AZDbKFKuj+9JNVTBkhUFhbg4MAt6WfyMMwBfM4lYqd4D2Jwac5iuTu9rVj4zCQ==", + "version": "15.2.9", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-15.2.9.tgz", + "integrity": "sha512-BZAt8Lk3sEnxw7tfxM7jeZlPRuT4M68O0/CwZhhaw6eeWu0Lz5eERE3m386InivXB64fp/mDID452h48tvKlRQ==", "dev": true, "requires": { "chalk": "~5.3.0", diff --git a/package.json b/package.json index 689a510c..a745ea3c 100644 --- a/package.json +++ b/package.json @@ -104,11 +104,11 @@ "eslint-plugin-jest-dom": "^5.4.0", "eslint-plugin-jsx-a11y": "^6.9.0", "eslint-plugin-react": "^7.35.0", - "eslint-plugin-testing-library": "^5.11.1", + "eslint-plugin-testing-library": "^6.3.0", "happy-dom": "^14.12.3", "husky": "^9.1.4", "i18next": "^23.12.2", - "lint-staged": "^15.2.8", + "lint-staged": "^15.2.9", "mkdirp": "^3.0.1", "prettier": "^3.3.3", "react": "^18.3.1",