From d15bcdf4da47251ee40efffbe3c615d5788ddae9 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 14 Dec 2024 13:43:53 -0700 Subject: [PATCH] Update eslint-plugin-import-sorting to v.2.1.0 (#237) --- .changeset/great-dolls-allow.md | 5 ++ packages/eslint-config/index.js | 1 + packages/eslint-config/package.json | 4 +- pnpm-lock.yaml | 102 +++++++++++++++++++++++++--- 4 files changed, 102 insertions(+), 10 deletions(-) create mode 100644 .changeset/great-dolls-allow.md diff --git a/.changeset/great-dolls-allow.md b/.changeset/great-dolls-allow.md new file mode 100644 index 0000000..a19da70 --- /dev/null +++ b/.changeset/great-dolls-allow.md @@ -0,0 +1,5 @@ +--- +"@zazen/eslint-config": minor +--- + +Update eslint-plugin-import-sorting to v2.1.0 diff --git a/packages/eslint-config/index.js b/packages/eslint-config/index.js index e6377d9..3e3e1bd 100644 --- a/packages/eslint-config/index.js +++ b/packages/eslint-config/index.js @@ -154,6 +154,7 @@ const config = { */ 'import/order': 'off', 'import-sorting/order': 'error', + 'import-sorting/specifier-order': 'error', }, } diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index e846ec7..927e477 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -24,7 +24,7 @@ "test": "ava" }, "dependencies": { - "@rushstack/eslint-patch": "1.7.0", + "@rushstack/eslint-patch": "1.10.4", "@typescript-eslint/eslint-plugin": "6.21.0", "@typescript-eslint/parser": "6.21.0", "eslint-config-prettier": "9.1.0", @@ -32,7 +32,7 @@ "eslint-config-xo-typescript": "1.0.1", "eslint-plugin-etc": "2.0.3", "eslint-plugin-import": "2.29.1", - "eslint-plugin-import-sorting": "1.1.0", + "eslint-plugin-import-sorting": "2.1.0", "eslint-plugin-n": "16.6.2", "eslint-plugin-prefer-let": "3.0.1", "eslint-plugin-promise": "6.1.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3cd87c4..22d492f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -104,8 +104,8 @@ importers: packages/eslint-config: dependencies: '@rushstack/eslint-patch': - specifier: 1.7.0 - version: 1.7.0 + specifier: 1.10.4 + version: 1.10.4 '@typescript-eslint/eslint-plugin': specifier: 6.21.0 version: 6.21.0(@typescript-eslint/parser@6.21.0)(eslint@8.53.0)(typescript@5.3.3) @@ -131,8 +131,8 @@ importers: specifier: 2.29.1 version: 2.29.1(@typescript-eslint/parser@6.21.0)(eslint@8.53.0) eslint-plugin-import-sorting: - specifier: 1.1.0 - version: 1.1.0 + specifier: 2.1.0 + version: 2.1.0(eslint@8.53.0)(typescript@5.3.3) eslint-plugin-n: specifier: 16.6.2 version: 16.6.2(eslint@8.53.0) @@ -880,8 +880,8 @@ packages: dev: true optional: true - /@rushstack/eslint-patch@1.7.0: - resolution: {integrity: sha512-Jh4t/593gxs0lJZ/z3NnasKlplXT2f+4y/LZYuaKZW5KAaiVFL/fThhs+17EbUd53jUVJ0QudYCBGbN/psvaqg==} + /@rushstack/eslint-patch@1.10.4: + resolution: {integrity: sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==} dev: false /@sinclair/typebox@0.27.8: @@ -1039,6 +1039,14 @@ packages: '@typescript-eslint/visitor-keys': 6.21.0 dev: false + /@typescript-eslint/scope-manager@7.18.0: + resolution: {integrity: sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==} + engines: {node: ^18.18.0 || >=20.0.0} + dependencies: + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/visitor-keys': 7.18.0 + dev: false + /@typescript-eslint/type-utils@6.21.0(eslint@8.53.0)(typescript@5.3.3): resolution: {integrity: sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1069,6 +1077,11 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: false + /@typescript-eslint/types@7.18.0: + resolution: {integrity: sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==} + engines: {node: ^18.18.0 || >=20.0.0} + dev: false + /@typescript-eslint/typescript-estree@5.62.0(typescript@5.3.3): resolution: {integrity: sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -1112,6 +1125,28 @@ packages: - supports-color dev: false + /@typescript-eslint/typescript-estree@7.18.0(typescript@5.3.3): + resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/visitor-keys': 7.18.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.5 + semver: 7.6.3 + ts-api-utils: 1.4.3(typescript@5.3.3) + typescript: 5.3.3 + transitivePeerDependencies: + - supports-color + dev: false + /@typescript-eslint/utils@5.62.0(eslint@8.53.0)(typescript@5.3.3): resolution: {integrity: sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -1151,6 +1186,22 @@ packages: - typescript dev: false + /@typescript-eslint/utils@7.18.0(eslint@8.53.0)(typescript@5.3.3): + resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} + engines: {node: ^18.18.0 || >=20.0.0} + peerDependencies: + eslint: ^8.56.0 + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) + '@typescript-eslint/scope-manager': 7.18.0 + '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.3.3) + eslint: 8.53.0 + transitivePeerDependencies: + - supports-color + - typescript + dev: false + /@typescript-eslint/visitor-keys@5.62.0: resolution: {integrity: sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -1167,6 +1218,14 @@ packages: eslint-visitor-keys: 3.4.3 dev: false + /@typescript-eslint/visitor-keys@7.18.0: + resolution: {integrity: sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==} + engines: {node: ^18.18.0 || >=20.0.0} + dependencies: + '@typescript-eslint/types': 7.18.0 + eslint-visitor-keys: 3.4.3 + dev: false + /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} @@ -2354,11 +2413,16 @@ packages: - supports-color dev: false - /eslint-plugin-import-sorting@1.1.0: - resolution: {integrity: sha512-4qGrkAU8/YRXMaegYHLzZpy9rcFK0UX4nQglHGkecEBzsfyWNBIfoS1R67jJylL1buQrH8c2iHkZXgWhNsi+Rw==} + /eslint-plugin-import-sorting@2.1.0(eslint@8.53.0)(typescript@5.3.3): + resolution: {integrity: sha512-SW/mNjyulFLAvIwDhD4xAj3qMs0MnBcspUcdKsLSthohQogSnWCiDwr4xU4y5CEyTMmXOMFQibHKhpnIb3Pfcw==} engines: {node: '>=16.17.0 || >=18.6.0'} dependencies: + '@typescript-eslint/utils': 7.18.0(eslint@8.53.0)(typescript@5.3.3) object.groupby: 1.0.1 + transitivePeerDependencies: + - eslint + - supports-color + - typescript dev: false /eslint-plugin-import@2.29.1(@typescript-eslint/parser@6.21.0)(eslint@8.53.0): @@ -3618,6 +3682,13 @@ packages: brace-expansion: 2.0.1 dev: false + /minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} + dependencies: + brace-expansion: 2.0.1 + dev: false + /minimist-options@4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -4355,6 +4426,12 @@ packages: dependencies: lru-cache: 6.0.0 + /semver@7.6.3: + resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} + engines: {node: '>=10'} + hasBin: true + dev: false + /serialize-error@7.0.1: resolution: {integrity: sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==} engines: {node: '>=10'} @@ -4882,6 +4959,15 @@ packages: typescript: 5.3.3 dev: false + /ts-api-utils@1.4.3(typescript@5.3.3): + resolution: {integrity: sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==} + engines: {node: '>=16'} + peerDependencies: + typescript: '>=4.2.0' + dependencies: + typescript: 5.3.3 + dev: false + /tsconfig-paths@3.15.0: resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==} dependencies: