From 8b49cbc0a82cad0f5fa76f423a24f864ec2b5f27 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 1 Jun 2024 07:30:53 +0000 Subject: [PATCH 1/5] chore(deps): update dependency eslint to v9 --- crates/rover-client/package-lock.json | 327 ++++++++++---------------- crates/rover-client/package.json | 2 +- 2 files changed, 122 insertions(+), 207 deletions(-) diff --git a/crates/rover-client/package-lock.json b/crates/rover-client/package-lock.json index 1b1080ac8..8620d8464 100644 --- a/crates/rover-client/package-lock.json +++ b/crates/rover-client/package-lock.json @@ -9,7 +9,7 @@ "version": "0.0.0", "devDependencies": { "@graphql-eslint/eslint-plugin": "3.20.1", - "eslint": "8.57.0", + "eslint": "9.4.0", "graphql": "16.8.1" }, "engines": { @@ -538,16 +538,32 @@ "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, + "node_modules/@eslint/config-array": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.15.1.tgz", + "integrity": "sha512-K4gzNq+yymn/EVsXYmf+SBcBro8MTf+aXJZUphM96CdzUEr+ClGDvAbpmaEK+cGVigVXIgs9gNmvHAlrzzY5JQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/object-schema": "^2.1.3", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz", + "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==", "dev": true, + "license": "MIT", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", + "espree": "^10.0.1", + "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", "js-yaml": "^4.1.0", @@ -555,35 +571,43 @@ "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.4.0.tgz", + "integrity": "sha512-fdI7VJjP3Rvc70lC4xkFXHB0fiPeojiL1PxVG6t1ZvXQrarj893PweuBTujxDUFk0Fxj4R7PIIAZ/aiiyZPZcg==", "dev": true, "license": "MIT", "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, + "node_modules/@eslint/object-schema": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.3.tgz", + "integrity": "sha512-HAbhAYKfsAC2EkTqve00ibWIZlaU74Z1EHwAjYr4PXF0YU2VEA1zSIKSSpKszRLRWwHzzRZXvK632u+uXzvsvw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, "node_modules/@graphql-eslint/eslint-plugin": { @@ -944,20 +968,6 @@ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", - "dev": true, - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", @@ -971,11 +981,19 @@ "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.2.tgz", - "integrity": "sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==", - "dev": true + "node_modules/@humanwhocodes/retry": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.0.tgz", + "integrity": "sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18.18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.3", @@ -1123,12 +1141,6 @@ "@types/node": "*" } }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "dev": true - }, "node_modules/@whatwg-node/events": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/@whatwg-node/events/-/events-0.0.3.tgz", @@ -1166,6 +1178,7 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, + "license": "MIT", "bin": { "acorn": "bin/acorn" }, @@ -1178,6 +1191,7 @@ "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "dev": true, + "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } @@ -1480,18 +1494,6 @@ "node": ">=8" } }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/dset": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.3.tgz", @@ -1540,42 +1542,38 @@ } }, "node_modules/eslint": { - "version": "8.57.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.4.0.tgz", + "integrity": "sha512-sjc7Y8cUD1IlwYcTS9qPSvGjAC8Ne9LctpxKKu3x/1IC9bnOg98Zy6GxEJUfr1NojMgVPlyANXYns8oE2c1TAA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint/config-array": "^0.15.1", + "@eslint/eslintrc": "^3.1.0", + "@eslint/js": "9.4.0", "@humanwhocodes/module-importer": "^1.0.1", + "@humanwhocodes/retry": "^0.3.0", "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", - "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", + "eslint-scope": "^8.0.1", + "eslint-visitor-keys": "^4.0.0", + "espree": "^10.0.1", "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", + "file-entry-cache": "^8.0.0", "find-up": "^5.0.0", "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", "ignore": "^5.2.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", @@ -1589,23 +1587,24 @@ "eslint": "bin/eslint.js" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" } }, "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.0.1.tgz", + "integrity": "sha512-pL8XjgP4ZOmmwfFE8mEhSxA7ZY4C+LWyqjQ3o4yWkkmD0qcMT9kkW3zWHOczhWcjTSgqycYAgwSlXvZltv65og==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^5.2.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -1623,34 +1622,45 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/eslint/node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "node_modules/eslint/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.20.2" - }, + "license": "Apache-2.0", "engines": { - "node": ">=8" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://opencollective.com/eslint" } }, "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.0.1.tgz", + "integrity": "sha512-MWkrWZbJsL2UwnjxTX3gG8FneachS/Mwg7tdGXce011sJd5b0JG54vat5KHnfSBODZ3Wvzd2WnjxyzsRoVv+ww==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "acorn": "^8.9.0", + "acorn": "^8.11.3", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" + "eslint-visitor-keys": "^4.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree/node_modules/eslint-visitor-keys": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.0.0.tgz", + "integrity": "sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "url": "https://opencollective.com/eslint" @@ -1790,15 +1800,16 @@ } }, "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "dev": true, + "license": "MIT", "dependencies": { - "flat-cache": "^3.0.4" + "flat-cache": "^4.0.0" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16.0.0" } }, "node_modules/fill-range": { @@ -1830,30 +1841,25 @@ } }, "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "dev": true, + "license": "MIT", "dependencies": { "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" + "keyv": "^4.5.4" }, "engines": { - "node": "^10.12.0 || >=12.0.0" + "node": ">=16" } }, "node_modules/flatted": { - "version": "3.2.9", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", - "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", - "dev": true - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", + "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", + "dev": true, + "license": "ISC" }, "node_modules/gensync": { "version": "1.0.0-beta.2", @@ -1865,26 +1871,6 @@ "node": ">=6.9.0" } }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -1926,12 +1912,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, "node_modules/graphql": { "version": "16.8.1", "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.8.1.tgz", @@ -2063,22 +2043,6 @@ "node": ">=0.8.19" } }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, "node_modules/is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", @@ -2182,7 +2146,8 @@ "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", @@ -2220,6 +2185,7 @@ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "dev": true, + "license": "MIT", "dependencies": { "json-buffer": "3.0.1" } @@ -2382,15 +2348,6 @@ "node": ">=0.10.0" } }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, "node_modules/optionator": { "version": "0.9.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", @@ -2477,15 +2434,6 @@ "node": ">=8" } }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -2601,21 +2549,6 @@ "node": ">=0.10.0" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -2781,18 +2714,6 @@ "node": ">= 0.8.0" } }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/undici-types": { "version": "5.26.5", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", @@ -2928,12 +2849,6 @@ "node": ">= 8" } }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, "node_modules/ws": { "version": "8.16.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.16.0.tgz", diff --git a/crates/rover-client/package.json b/crates/rover-client/package.json index 59e8fda35..aaf783627 100644 --- a/crates/rover-client/package.json +++ b/crates/rover-client/package.json @@ -8,7 +8,7 @@ "author": "opensource@apollographql.com", "devDependencies": { "@graphql-eslint/eslint-plugin": "3.20.1", - "eslint": "8.57.0", + "eslint": "9.4.0", "graphql": "16.8.1" }, "engines": { From 475bc05792aa360623fde18f0d4608732377a967 Mon Sep 17 00:00:00 2001 From: jonathanrainer Date: Mon, 3 Jun 2024 13:13:57 +0100 Subject: [PATCH 2/5] Port config to ESLint 9.0+ standard --- crates/rover-client/eslint.config.mjs | 62 +++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 crates/rover-client/eslint.config.mjs diff --git a/crates/rover-client/eslint.config.mjs b/crates/rover-client/eslint.config.mjs new file mode 100644 index 000000000..8423978a7 --- /dev/null +++ b/crates/rover-client/eslint.config.mjs @@ -0,0 +1,62 @@ +import * as graphqlESLint from '@graphql-eslint/eslint-plugin'; + +export default [ + { + files: ["*.graphql"], + plugins: { + '@graphql-eslint': graphqlESLint, + }, + languageOptions: { + parser: graphqlESLint, + }, + parserOptions: { + schema: "./.schema/schema.graphql", + operations: ["./src/operations/**/*.graphql"] + }, + rules: { + "@graphql-eslint/no-duplicate-fields": 2, + "@graphql-eslint/no-typename-prefix": 2, + "@graphql-eslint/description-style": 2, + "@graphql-eslint/executable-definitions": 2, + "@graphql-eslint/fields-on-correct-type": 2, + "@graphql-eslint/fragments-on-composite-type": 2, + "@graphql-eslint/input-name": 2, + "@graphql-eslint/known-argument-names": 2, + "@graphql-eslint/known-directives": 2, + "@graphql-eslint/known-fragment-names": 2, + "@graphql-eslint/known-type-names": 2, + "@graphql-eslint/lone-anonymous-operation": 2, + "@graphql-eslint/no-anonymous-operations": 2, + "@graphql-eslint/no-case-insensitive-enum-values-duplicates": 2, + "@graphql-eslint/no-deprecated": 2, + "@graphql-eslint/no-fragment-cycles": 2, + "@graphql-eslint/no-hashtag-description": 2, + "@graphql-eslint/no-undefined-variables": 2, + "@graphql-eslint/no-unused-fields": 2, + "@graphql-eslint/no-unused-fragments": 2, + "@graphql-eslint/no-unused-variables": 2, + "@graphql-eslint/one-field-subscriptions": 2, + "@graphql-eslint/overlapping-fields-can-be-merged": 2, + "@graphql-eslint/possible-fragment-spread": 2, + "@graphql-eslint/possible-type-extension": 2, + "@graphql-eslint/provided-required-arguments": 2, + "@graphql-eslint/require-deprecation-reason": 2, + "@graphql-eslint/scalar-leafs": 2, + "@graphql-eslint/strict-id-in-types": 2, + "@graphql-eslint/unique-argument-names": 2, + "@graphql-eslint/unique-directive-names": 2, + "@graphql-eslint/unique-directive-names-per-location": 2, + "@graphql-eslint/unique-enum-value-names": 2, + "@graphql-eslint/unique-field-definition-names": 2, + "@graphql-eslint/unique-fragment-name": 2, + "@graphql-eslint/unique-input-field-names": 2, + "@graphql-eslint/unique-operation-name": 2, + "@graphql-eslint/unique-operation-types": 2, + "@graphql-eslint/unique-type-names": 2, + "@graphql-eslint/unique-variable-names": 2, + "@graphql-eslint/value-literals-of-correct-type": 2, + "@graphql-eslint/variables-are-input-types": 2, + "@graphql-eslint/variables-in-allowed-position": 2 + } + } +] \ No newline at end of file From 9497e4f8b76a960a4c4febd091cca9ac3f3cc485 Mon Sep 17 00:00:00 2001 From: jonathanrainer Date: Mon, 3 Jun 2024 13:32:32 +0100 Subject: [PATCH 3/5] Remove old config --- crates/rover-client/.eslintrc.json | 59 ------------------------------ 1 file changed, 59 deletions(-) delete mode 100644 crates/rover-client/.eslintrc.json diff --git a/crates/rover-client/.eslintrc.json b/crates/rover-client/.eslintrc.json deleted file mode 100644 index 4294191a1..000000000 --- a/crates/rover-client/.eslintrc.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "root": true, - "overrides": [ - { - "files": ["*.graphql"], - "parser": "@graphql-eslint/eslint-plugin", - "plugins": ["@graphql-eslint"], - "parserOptions": { - "schema": "./.schema/schema.graphql", - "operations": ["./src/operations/**/*.graphql"] - }, - "rules": { - "@graphql-eslint/no-duplicate-fields": 2, - "@graphql-eslint/no-typename-prefix": 2, - "@graphql-eslint/description-style": 2, - "@graphql-eslint/executable-definitions": 2, - "@graphql-eslint/fields-on-correct-type": 2, - "@graphql-eslint/fragments-on-composite-type": 2, - "@graphql-eslint/input-name": 2, - "@graphql-eslint/known-argument-names": 2, - "@graphql-eslint/known-directives": 2, - "@graphql-eslint/known-fragment-names": 2, - "@graphql-eslint/known-type-names": 2, - "@graphql-eslint/lone-anonymous-operation": 2, - "@graphql-eslint/no-anonymous-operations": 2, - "@graphql-eslint/no-case-insensitive-enum-values-duplicates": 2, - "@graphql-eslint/no-deprecated": 2, - "@graphql-eslint/no-fragment-cycles": 2, - "@graphql-eslint/no-hashtag-description": 2, - "@graphql-eslint/no-undefined-variables": 2, - "@graphql-eslint/no-unused-fields": 2, - "@graphql-eslint/no-unused-fragments": 2, - "@graphql-eslint/no-unused-variables": 2, - "@graphql-eslint/one-field-subscriptions": 2, - "@graphql-eslint/overlapping-fields-can-be-merged": 2, - "@graphql-eslint/possible-fragment-spread": 2, - "@graphql-eslint/possible-type-extension": 2, - "@graphql-eslint/provided-required-arguments": 2, - "@graphql-eslint/require-deprecation-reason": 2, - "@graphql-eslint/scalar-leafs": 2, - "@graphql-eslint/strict-id-in-types": 2, - "@graphql-eslint/unique-argument-names": 2, - "@graphql-eslint/unique-directive-names": 2, - "@graphql-eslint/unique-directive-names-per-location": 2, - "@graphql-eslint/unique-enum-value-names": 2, - "@graphql-eslint/unique-field-definition-names": 2, - "@graphql-eslint/unique-fragment-name": 2, - "@graphql-eslint/unique-input-field-names": 2, - "@graphql-eslint/unique-operation-name": 2, - "@graphql-eslint/unique-operation-types": 2, - "@graphql-eslint/unique-type-names": 2, - "@graphql-eslint/unique-variable-names": 2, - "@graphql-eslint/value-literals-of-correct-type": 2, - "@graphql-eslint/variables-are-input-types": 2, - "@graphql-eslint/variables-in-allowed-position": 2 - } - } - ] -} From b3de9a680deb1b002f981441be2b350c3d66ddbf Mon Sep 17 00:00:00 2001 From: jonathanrainer Date: Mon, 3 Jun 2024 13:56:32 +0100 Subject: [PATCH 4/5] Fix linting so it actually works --- crates/rover-client/eslint.config.mjs | 15 +++++++++------ crates/rover-client/package-lock.json | 10 ++++++++++ crates/rover-client/package.json | 3 ++- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/crates/rover-client/eslint.config.mjs b/crates/rover-client/eslint.config.mjs index 8423978a7..2e3d9db5c 100644 --- a/crates/rover-client/eslint.config.mjs +++ b/crates/rover-client/eslint.config.mjs @@ -1,17 +1,20 @@ import * as graphqlESLint from '@graphql-eslint/eslint-plugin'; +// This is brought in to fix an incompatability between ESLint 9 and +// the GraphQL plugin: https://github.com/dimaMachina/graphql-eslint/issues/2311 +import {fixupPluginRules} from '@eslint/compat' export default [ { - files: ["*.graphql"], + files: ["**/*.graphql"], plugins: { - '@graphql-eslint': graphqlESLint, + '@graphql-eslint':fixupPluginRules(graphqlESLint), }, languageOptions: { parser: graphqlESLint, - }, - parserOptions: { - schema: "./.schema/schema.graphql", - operations: ["./src/operations/**/*.graphql"] + parserOptions:{ + schema: "./.schema/schema.graphql", + operations: ["./src/operations/**/*.graphql"] + } }, rules: { "@graphql-eslint/no-duplicate-fields": 2, diff --git a/crates/rover-client/package-lock.json b/crates/rover-client/package-lock.json index 8620d8464..377a9ccf9 100644 --- a/crates/rover-client/package-lock.json +++ b/crates/rover-client/package-lock.json @@ -8,6 +8,7 @@ "name": "rover-client", "version": "0.0.0", "devDependencies": { + "@eslint/compat": "^1.0.3", "@graphql-eslint/eslint-plugin": "3.20.1", "eslint": "9.4.0", "graphql": "16.8.1" @@ -538,6 +539,15 @@ "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, + "node_modules/@eslint/compat": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@eslint/compat/-/compat-1.0.3.tgz", + "integrity": "sha512-9RaroPQaU2+SDcWav1YfuipwqnHccoiXZdUsicRQsQ/vH2wkEmRVcj344GapG/FnCeZRtqj0n6PshI+s9xkkAQ==", + "dev": true, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@eslint/config-array": { "version": "0.15.1", "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.15.1.tgz", diff --git a/crates/rover-client/package.json b/crates/rover-client/package.json index aaf783627..da285abc9 100644 --- a/crates/rover-client/package.json +++ b/crates/rover-client/package.json @@ -9,7 +9,8 @@ "devDependencies": { "@graphql-eslint/eslint-plugin": "3.20.1", "eslint": "9.4.0", - "graphql": "16.8.1" + "graphql": "16.8.1", + "@eslint/compat": "^1.0.3" }, "engines": { "node": "<21", From 85e842d4072c4d6c9d1a224b85ee7b048a3270c3 Mon Sep 17 00:00:00 2001 From: Brian George Date: Tue, 4 Jun 2024 15:05:13 -0400 Subject: [PATCH 5/5] Update ignored files --- crates/rover-client/eslint.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/rover-client/eslint.config.mjs b/crates/rover-client/eslint.config.mjs index 2e3d9db5c..b22baaf7c 100644 --- a/crates/rover-client/eslint.config.mjs +++ b/crates/rover-client/eslint.config.mjs @@ -6,6 +6,7 @@ import {fixupPluginRules} from '@eslint/compat' export default [ { files: ["**/*.graphql"], + ignores: ["**/*/schema.graphql"], plugins: { '@graphql-eslint':fixupPluginRules(graphqlESLint), },