From 64ee42c9b4aa0c6e8232a3ef790fe0fb8a2f683e Mon Sep 17 00:00:00 2001 From: John Gozde Date: Fri, 8 Mar 2024 15:28:39 -0700 Subject: [PATCH] Support typescript-eslint 7.x --- .changeset/chilled-carrots-pay.md | 5 ++ package-lock.json | 81 ++++++++++++++++------------- packages/eslint-config/package.json | 7 ++- 3 files changed, 54 insertions(+), 39 deletions(-) create mode 100644 .changeset/chilled-carrots-pay.md diff --git a/.changeset/chilled-carrots-pay.md b/.changeset/chilled-carrots-pay.md new file mode 100644 index 0000000..e6213ab --- /dev/null +++ b/.changeset/chilled-carrots-pay.md @@ -0,0 +1,5 @@ +--- +'@awesome-code-style/eslint-config': minor +--- + +Support typescript-eslint 7.x diff --git a/package-lock.json b/package-lock.json index accb894..21c89cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1074,6 +1074,7 @@ "version": "6.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.6.0.tgz", "integrity": "sha512-setq5aJgUwtzGrhW177/i+DMLqBaJbdwGj2CPIVFFLE0NCliy5ujIdLHd2D1ysmlmsjdL2GWW+hR85neEfc12w==", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "6.6.0", "@typescript-eslint/types": "6.6.0", @@ -1101,6 +1102,7 @@ "version": "6.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.6.0.tgz", "integrity": "sha512-pT08u5W/GT4KjPUmEtc2kSYvrH8x89cVzkA0Sy2aaOUIw6YxOIjA8ilwLr/1fLjOedX1QAuBpG9XggWqIIfERw==", + "peer": true, "dependencies": { "@typescript-eslint/types": "6.6.0", "@typescript-eslint/visitor-keys": "6.6.0" @@ -1144,6 +1146,7 @@ "version": "6.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.6.0.tgz", "integrity": "sha512-CB6QpJQ6BAHlJXdwUmiaXDBmTqIE2bzGTDLADgvqtHWuhfNP3rAOK7kAgRMAET5rDRr9Utt+qAzRBdu3AhR3sg==", + "peer": true, "engines": { "node": "^16.0.0 || >=18.0.0" }, @@ -1156,6 +1159,7 @@ "version": "6.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.6.0.tgz", "integrity": "sha512-hMcTQ6Al8MP2E6JKBAaSxSVw5bDhdmbCEhGW/V8QXkb9oNsFkA4SBuOMYVPxD3jbtQ4R/vSODBsr76R6fP3tbA==", + "peer": true, "dependencies": { "@typescript-eslint/types": "6.6.0", "@typescript-eslint/visitor-keys": "6.6.0", @@ -1182,6 +1186,7 @@ "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "peer": true, "dependencies": { "lru-cache": "^6.0.0" }, @@ -1236,6 +1241,7 @@ "version": "6.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.6.0.tgz", "integrity": "sha512-L61uJT26cMOfFQ+lMZKoJNbAEckLe539VhTxiGHrWl5XSKQgA0RTBZJW2HFPy5T0ZvPVSD93QsrTKDkfNwJGyQ==", + "peer": true, "dependencies": { "@typescript-eslint/types": "6.6.0", "eslint-visitor-keys": "^3.4.1" @@ -2038,9 +2044,9 @@ } }, "node_modules/eslint-plugin-react/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "optional": true, "peer": true, "bin": { @@ -3406,9 +3412,9 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==", + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", "funding": [ { "type": "github", @@ -3768,9 +3774,9 @@ } }, "node_modules/postcss": { - "version": "8.4.29", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.29.tgz", - "integrity": "sha512-cbI+jaqIeu/VGqXEarWkRCCffhjgXc0qjBtXpqJhTBohMUjUQnbBr0xqX3vEKudc4iviTewcJo5ajcec5+wdJw==", + "version": "8.4.35", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz", + "integrity": "sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==", "funding": [ { "type": "opencollective", @@ -3786,7 +3792,7 @@ } ], "dependencies": { - "nanoid": "^3.3.6", + "nanoid": "^3.3.7", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" }, @@ -4329,9 +4335,9 @@ "dev": true }, "node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -5344,6 +5350,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.2.tgz", "integrity": "sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==", + "peer": true, "engines": { "node": ">=16.13.0" }, @@ -5738,17 +5745,15 @@ }, "packages/eslint-config": { "name": "@awesome-code-style/eslint-config", - "version": "5.0.0-beta.2", + "version": "5.0.0", "license": "MIT", - "dependencies": { - "@typescript-eslint/parser": "^6.6.0" - }, "devDependencies": { "eslint": "^8.48.0", "typescript": "^5.2.2" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/eslint-plugin": "^6.0.0 || ^7.0.0", + "@typescript-eslint/parser": "^6.6.0 || ^7.0.0", "eslint": ">= 8.0.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.25.2", @@ -5768,7 +5773,7 @@ }, "packages/prettier-config": { "name": "@awesome-code-style/prettier-config", - "version": "5.0.0-beta.0", + "version": "5.0.0", "license": "MIT", "devDependencies": { "prettier": "^3.0.3" @@ -5779,7 +5784,7 @@ }, "packages/stylelint-config": { "name": "@awesome-code-style/stylelint-config", - "version": "4.0.2-beta.0", + "version": "5.0.0", "license": "MIT", "dependencies": { "stylelint-config-recommended-scss": "^13.0.0" @@ -5801,7 +5806,6 @@ "@awesome-code-style/eslint-config": { "version": "file:packages/eslint-config", "requires": { - "@typescript-eslint/parser": "^6.6.0", "eslint": "^8.48.0", "typescript": "^5.2.2" } @@ -6612,6 +6616,7 @@ "version": "6.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.6.0.tgz", "integrity": "sha512-setq5aJgUwtzGrhW177/i+DMLqBaJbdwGj2CPIVFFLE0NCliy5ujIdLHd2D1ysmlmsjdL2GWW+hR85neEfc12w==", + "peer": true, "requires": { "@typescript-eslint/scope-manager": "6.6.0", "@typescript-eslint/types": "6.6.0", @@ -6624,6 +6629,7 @@ "version": "6.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.6.0.tgz", "integrity": "sha512-pT08u5W/GT4KjPUmEtc2kSYvrH8x89cVzkA0Sy2aaOUIw6YxOIjA8ilwLr/1fLjOedX1QAuBpG9XggWqIIfERw==", + "peer": true, "requires": { "@typescript-eslint/types": "6.6.0", "@typescript-eslint/visitor-keys": "6.6.0" @@ -6644,12 +6650,14 @@ "@typescript-eslint/types": { "version": "6.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.6.0.tgz", - "integrity": "sha512-CB6QpJQ6BAHlJXdwUmiaXDBmTqIE2bzGTDLADgvqtHWuhfNP3rAOK7kAgRMAET5rDRr9Utt+qAzRBdu3AhR3sg==" + "integrity": "sha512-CB6QpJQ6BAHlJXdwUmiaXDBmTqIE2bzGTDLADgvqtHWuhfNP3rAOK7kAgRMAET5rDRr9Utt+qAzRBdu3AhR3sg==", + "peer": true }, "@typescript-eslint/typescript-estree": { "version": "6.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.6.0.tgz", "integrity": "sha512-hMcTQ6Al8MP2E6JKBAaSxSVw5bDhdmbCEhGW/V8QXkb9oNsFkA4SBuOMYVPxD3jbtQ4R/vSODBsr76R6fP3tbA==", + "peer": true, "requires": { "@typescript-eslint/types": "6.6.0", "@typescript-eslint/visitor-keys": "6.6.0", @@ -6664,6 +6672,7 @@ "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "peer": true, "requires": { "lru-cache": "^6.0.0" } @@ -6700,6 +6709,7 @@ "version": "6.6.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.6.0.tgz", "integrity": "sha512-L61uJT26cMOfFQ+lMZKoJNbAEckLe539VhTxiGHrWl5XSKQgA0RTBZJW2HFPy5T0ZvPVSD93QsrTKDkfNwJGyQ==", + "peer": true, "requires": { "@typescript-eslint/types": "6.6.0", "eslint-visitor-keys": "^3.4.1" @@ -7443,9 +7453,9 @@ } }, "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "optional": true, "peer": true } @@ -8330,9 +8340,9 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "nanoid": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz", - "integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==" + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", + "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==" }, "natural-compare": { "version": "1.4.0", @@ -8582,11 +8592,11 @@ } }, "postcss": { - "version": "8.4.29", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.29.tgz", - "integrity": "sha512-cbI+jaqIeu/VGqXEarWkRCCffhjgXc0qjBtXpqJhTBohMUjUQnbBr0xqX3vEKudc4iviTewcJo5ajcec5+wdJw==", + "version": "8.4.35", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz", + "integrity": "sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==", "requires": { - "nanoid": "^3.3.6", + "nanoid": "^3.3.7", "picocolors": "^1.0.0", "source-map-js": "^1.0.2" } @@ -8949,9 +8959,9 @@ "dev": true }, "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true }, "set-blocking": { @@ -9695,6 +9705,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.0.2.tgz", "integrity": "sha512-Cbu4nIqnEdd+THNEsBdkolnOXhg0I8XteoHaEKgvsxpsbWda4IsUut2c187HxywQCvveojow0Dgw/amxtSKVkQ==", + "peer": true, "requires": {} }, "tsconfig-paths": { diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index e85b53f..743d424 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -19,11 +19,10 @@ }, "homepage": "https://github.com/implydata/awesome-code-style#readme", "main": "index.js", - "dependencies": { - "@typescript-eslint/parser": "^6.6.0" - }, + "dependencies": {}, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.6.0 || ^7.0.0", + "@typescript-eslint/eslint-plugin": "^6.0.0 || ^7.0.0", "eslint": ">= 8.0.0", "eslint-config-prettier": "^9.0.0", "eslint-plugin-import": "^2.25.2",