diff --git a/package-lock.json b/package-lock.json index 80335752c7..11d2ead531 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30279,30 +30279,6 @@ "semver": "bin/semver.js" } }, - "node_modules/eslint-plugin-jest-dom": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest-dom/-/eslint-plugin-jest-dom-5.4.0.tgz", - "integrity": "sha512-yBqvFsnpS5Sybjoq61cJiUsenRkC9K32hYQBFS9doBR7nbQZZ5FyO+X7MlmfM1C48Ejx/qTuOCgukDUNyzKZ7A==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.16.3", - "requireindex": "^1.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0", - "npm": ">=6", - "yarn": ">=1" - }, - "peerDependencies": { - "@testing-library/dom": "^8.0.0 || ^9.0.0 || ^10.0.0", - "eslint": "^6.8.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" - }, - "peerDependenciesMeta": { - "@testing-library/dom": { - "optional": true - } - } - }, "node_modules/eslint-plugin-json-es": { "version": "1.5.4", "resolved": "https://registry.npmjs.org/eslint-plugin-json-es/-/eslint-plugin-json-es-1.5.4.tgz", @@ -47211,15 +47187,6 @@ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", "dev": true }, - "node_modules/requireindex": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/requireindex/-/requireindex-1.2.0.tgz", - "integrity": "sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww==", - "dev": true, - "engines": { - "node": ">=0.10.5" - } - }, "node_modules/requirejs": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.6.tgz", @@ -57780,15 +57747,12 @@ "devDependencies": { "@coveo/release": "1.0.0", "@testing-library/react": "14.3.1", - "@types/jest": "29.5.12", "@types/react": "18.3.3", "@types/react-dom": "18.3.0", "@typescript-eslint/eslint-plugin": "7.17.0", - "eslint-plugin-jest-dom": "5.4.0", "eslint-plugin-react": "7.35.0", "eslint-plugin-testing-library": "6.2.2", "gts": "5.3.1", - "jest-environment-jsdom": "29.7.0", "publint": "0.2.9", "rimraf": "5.0.9", "typescript": "5.4.5", diff --git a/packages/headless-react/.eslintrc.cjs b/packages/headless-react/.eslintrc.cjs index 35aa3dbc3e..563f94458e 100644 --- a/packages/headless-react/.eslintrc.cjs +++ b/packages/headless-react/.eslintrc.cjs @@ -5,12 +5,8 @@ const gtsPath = resolve(gtsPkgJsonPath, '..'); module.exports = { root: true, parser: '@typescript-eslint/parser', - plugins: ['@typescript-eslint', 'react', 'testing-library', 'jest-dom'], - extends: [ - gtsPath, - 'plugin:testing-library/react', - 'plugin:jest-dom/recommended', - ], + plugins: ['@typescript-eslint', 'react', 'testing-library'], + extends: [gtsPath, 'plugin:testing-library/react'], rules: { 'react/jsx-uses-vars': 'error', 'react/jsx-uses-react': 'error', diff --git a/packages/headless-react/package.json b/packages/headless-react/package.json index 15511623da..d76f513a26 100644 --- a/packages/headless-react/package.json +++ b/packages/headless-react/package.json @@ -38,15 +38,12 @@ "devDependencies": { "@coveo/release": "1.0.0", "@testing-library/react": "14.3.1", - "@types/jest": "29.5.12", "@types/react": "18.3.3", "@types/react-dom": "18.3.0", "@typescript-eslint/eslint-plugin": "7.17.0", - "eslint-plugin-jest-dom": "5.4.0", "eslint-plugin-react": "7.35.0", "eslint-plugin-testing-library": "6.2.2", "gts": "5.3.1", - "jest-environment-jsdom": "29.7.0", "publint": "0.2.9", "rimraf": "5.0.9", "typescript": "5.4.5",