From a1e1dc96fb330c1ca8577492697c6c431d45d268 Mon Sep 17 00:00:00 2001 From: cipchk Date: Sat, 24 Aug 2024 14:14:28 +0800 Subject: [PATCH] chore: eslint --- package.json | 2 +- yarn.lock | 109 +++++++++++++-------------------------------------- 2 files changed, 29 insertions(+), 82 deletions(-) diff --git a/package.json b/package.json index 8c7f7302c3..309f39f0fb 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "eslint-config-prettier": "~9.1.0", "eslint-plugin-deprecation": "^3.0.0", "eslint-plugin-header": "~3.1.1", - "eslint-plugin-import": "~2.29.1", + "eslint-plugin-import": "~2.25.3", "eslint-plugin-jsdoc": "~50.2.2", "eslint-plugin-prefer-arrow": "~1.2.3", "eslint-plugin-prettier": "~5.2.1", diff --git a/yarn.lock b/yarn.lock index 46d4cd192f..7203589689 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5407,7 +5407,7 @@ __metadata: languageName: node linkType: hard -"array-includes@npm:^3.1.7": +"array-includes@npm:^3.1.4": version: 3.1.8 resolution: "array-includes@npm:3.1.8" dependencies: @@ -5428,21 +5428,7 @@ __metadata: languageName: node linkType: hard -"array.prototype.findlastindex@npm:^1.2.3": - version: 1.2.5 - resolution: "array.prototype.findlastindex@npm:1.2.5" - dependencies: - call-bind: "npm:^1.0.7" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.2" - es-errors: "npm:^1.3.0" - es-object-atoms: "npm:^1.0.0" - es-shim-unscopables: "npm:^1.0.2" - checksum: 962189487728b034f3134802b421b5f39e42ee2356d13b42d2ddb0e52057ffdcc170b9524867f4f0611a6f638f4c19b31e14606e8bcbda67799e26685b195aa3 - languageName: node - linkType: hard - -"array.prototype.flat@npm:^1.3.2": +"array.prototype.flat@npm:^1.2.5": version: 1.3.2 resolution: "array.prototype.flat@npm:1.3.2" dependencies: @@ -5454,18 +5440,6 @@ __metadata: languageName: node linkType: hard -"array.prototype.flatmap@npm:^1.3.2": - version: 1.3.2 - resolution: "array.prototype.flatmap@npm:1.3.2" - dependencies: - call-bind: "npm:^1.0.2" - define-properties: "npm:^1.2.0" - es-abstract: "npm:^1.22.1" - es-shim-unscopables: "npm:^1.0.0" - checksum: 67b3f1d602bb73713265145853128b1ad77cc0f9b833c7e1e056b323fbeac41a4ff1c9c99c7b9445903caea924d9ca2450578d9011913191aa88cc3c3a4b54f4 - languageName: node - linkType: hard - "arraybuffer.prototype.slice@npm:^1.0.3": version: 1.0.3 resolution: "arraybuffer.prototype.slice@npm:1.0.3" @@ -7461,7 +7435,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:2.6.9": +"debug@npm:2.6.9, debug@npm:^2.6.9": version: 2.6.9 resolution: "debug@npm:2.6.9" dependencies: @@ -7668,7 +7642,7 @@ __metadata: eslint-config-prettier: "npm:~9.1.0" eslint-plugin-deprecation: "npm:^3.0.0" eslint-plugin-header: "npm:~3.1.1" - eslint-plugin-import: "npm:~2.29.1" + eslint-plugin-import: "npm:~2.25.3" eslint-plugin-jsdoc: "npm:~50.2.2" eslint-plugin-prefer-arrow: "npm:~1.2.3" eslint-plugin-prettier: "npm:~5.2.1" @@ -8271,7 +8245,7 @@ __metadata: languageName: node linkType: hard -"es-shim-unscopables@npm:^1.0.0, es-shim-unscopables@npm:^1.0.2": +"es-shim-unscopables@npm:^1.0.0": version: 1.0.2 resolution: "es-shim-unscopables@npm:1.0.2" dependencies: @@ -8646,7 +8620,7 @@ __metadata: languageName: node linkType: hard -"eslint-import-resolver-node@npm:^0.3.9": +"eslint-import-resolver-node@npm:^0.3.6": version: 0.3.9 resolution: "eslint-import-resolver-node@npm:0.3.9" dependencies: @@ -8657,7 +8631,7 @@ __metadata: languageName: node linkType: hard -"eslint-module-utils@npm:^2.8.0": +"eslint-module-utils@npm:^2.7.2": version: 2.8.1 resolution: "eslint-module-utils@npm:2.8.1" dependencies: @@ -8692,30 +8666,26 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-import@npm:~2.29.1": - version: 2.29.1 - resolution: "eslint-plugin-import@npm:2.29.1" +"eslint-plugin-import@npm:~2.25.3": + version: 2.25.4 + resolution: "eslint-plugin-import@npm:2.25.4" dependencies: - array-includes: "npm:^3.1.7" - array.prototype.findlastindex: "npm:^1.2.3" - array.prototype.flat: "npm:^1.3.2" - array.prototype.flatmap: "npm:^1.3.2" - debug: "npm:^3.2.7" + array-includes: "npm:^3.1.4" + array.prototype.flat: "npm:^1.2.5" + debug: "npm:^2.6.9" doctrine: "npm:^2.1.0" - eslint-import-resolver-node: "npm:^0.3.9" - eslint-module-utils: "npm:^2.8.0" - hasown: "npm:^2.0.0" - is-core-module: "npm:^2.13.1" + eslint-import-resolver-node: "npm:^0.3.6" + eslint-module-utils: "npm:^2.7.2" + has: "npm:^1.0.3" + is-core-module: "npm:^2.8.0" is-glob: "npm:^4.0.3" - minimatch: "npm:^3.1.2" - object.fromentries: "npm:^2.0.7" - object.groupby: "npm:^1.0.1" - object.values: "npm:^1.1.7" - semver: "npm:^6.3.1" - tsconfig-paths: "npm:^3.15.0" + minimatch: "npm:^3.0.4" + object.values: "npm:^1.1.5" + resolve: "npm:^1.20.0" + tsconfig-paths: "npm:^3.12.0" peerDependencies: eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 - checksum: 5f35dfbf4e8e67f741f396987de9504ad125c49f4144508a93282b4ea0127e052bde65ab6def1f31b6ace6d5d430be698333f75bdd7dca3bc14226c92a083196 + checksum: 1119fbe50339a3977ae95b9696afb334ea78805c99c3652969f0262aae7d8735884d84c6fadb1da0ed8ed238c2474de2f38b68104d08b8e288915d7824869f44 languageName: node linkType: hard @@ -10237,7 +10207,7 @@ __metadata: languageName: node linkType: hard -"has@npm:^1.0.1": +"has@npm:^1.0.1, has@npm:^1.0.3": version: 1.0.4 resolution: "has@npm:1.0.4" checksum: 82c1220573dc1f0a014a5d6189ae52a1f820f99dfdc00323c3a725b5002dcb7f04e44f460fea7af068474b2dd7c88cbe1846925c84017be9e31e1708936d305b @@ -10949,7 +10919,7 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.13.0, is-core-module@npm:^2.13.1, is-core-module@npm:^2.5.0": +"is-core-module@npm:^2.13.0, is-core-module@npm:^2.5.0, is-core-module@npm:^2.8.0": version: 2.15.1 resolution: "is-core-module@npm:2.15.1" dependencies: @@ -13920,30 +13890,7 @@ __metadata: languageName: node linkType: hard -"object.fromentries@npm:^2.0.7": - version: 2.0.8 - resolution: "object.fromentries@npm:2.0.8" - dependencies: - call-bind: "npm:^1.0.7" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.2" - es-object-atoms: "npm:^1.0.0" - checksum: cd4327e6c3369cfa805deb4cbbe919bfb7d3aeebf0bcaba291bb568ea7169f8f8cdbcabe2f00b40db0c20cd20f08e11b5f3a5a36fb7dd3fe04850c50db3bf83b - languageName: node - linkType: hard - -"object.groupby@npm:^1.0.1": - version: 1.0.3 - resolution: "object.groupby@npm:1.0.3" - dependencies: - call-bind: "npm:^1.0.7" - define-properties: "npm:^1.2.1" - es-abstract: "npm:^1.23.2" - checksum: 60d0455c85c736fbfeda0217d1a77525956f76f7b2495edeca9e9bbf8168a45783199e77b894d30638837c654d0cc410e0e02cbfcf445bc8de71c3da1ede6a9c - languageName: node - linkType: hard - -"object.values@npm:^1.1.7": +"object.values@npm:^1.1.5": version: 1.2.0 resolution: "object.values@npm:1.2.0" dependencies: @@ -15584,7 +15531,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:1.22.8, resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.22.1, resolve@npm:^1.22.4": +"resolve@npm:1.22.8, resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.20.0, resolve@npm:^1.22.1, resolve@npm:^1.22.4": version: 1.22.8 resolution: "resolve@npm:1.22.8" dependencies: @@ -15604,7 +15551,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A1.22.8#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": +"resolve@patch:resolve@npm%3A1.22.8#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin": version: 1.22.8 resolution: "resolve@patch:resolve@npm%3A1.22.8#optional!builtin::version=1.22.8&hash=c3c19d" dependencies: @@ -17647,7 +17594,7 @@ __metadata: languageName: node linkType: hard -"tsconfig-paths@npm:^3.15.0": +"tsconfig-paths@npm:^3.12.0": version: 3.15.0 resolution: "tsconfig-paths@npm:3.15.0" dependencies: