diff --git a/build_utils/eslintrc.js b/build_utils/eslintrc.js index dacc41fe..19467579 100644 --- a/build_utils/eslintrc.js +++ b/build_utils/eslintrc.js @@ -155,6 +155,10 @@ module.exports = { node: { paths: ['./'], }, + typescript: true, + }, + 'import/parsers': { + '@typescript-eslint/parser': [".ts", ".tsx"], }, react: { version: '18.2' // not using react now, set to disable warning diff --git a/packages/cli-common/package.json b/packages/cli-common/package.json index c4129bc6..8ace5318 100644 --- a/packages/cli-common/package.json +++ b/packages/cli-common/package.json @@ -22,7 +22,7 @@ "@typescript-eslint/parser": "6.10.0", "eslint": "^8.36.0", "eslint-config-airbnb": "^19.0.4", - "eslint-plugin-import": "^2.27.5", + "eslint-plugin-import": "^2.29.0", "eslint-plugin-jest": "27.4.2", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.32.2", diff --git a/packages/cli/package.json b/packages/cli/package.json index a6f6b49b..ebfd6a68 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -50,7 +50,7 @@ "eslint-config-airbnb": "^19.0.4", "eslint-config-oclif": "^4", "eslint-config-oclif-typescript": "^1.0.3", - "eslint-plugin-import": "^2.27.5", + "eslint-plugin-import": "^2.29.0", "eslint-plugin-jest": "27.4.2", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.32.2", diff --git a/packages/core/package.json b/packages/core/package.json index df10c471..d9526f29 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -13,6 +13,7 @@ "@preevy/compose-tunnel-agent": "0.0.56", "chalk": "^4.1.2", "fast-safe-stringify": "^2.1.1", + "inquirer": "^8.0.0", "is-stream": "^2.0.1", "iter-tools-es": "^7.5.3", "jose": "^4.14.4", @@ -56,7 +57,8 @@ "@typescript-eslint/parser": "6.10.0", "eslint": "^8.36.0", "eslint-config-airbnb": "^19.0.4", - "eslint-plugin-import": "^2.27.5", + "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-import": "^2.29.0", "eslint-plugin-jest": "27.4.2", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.32.2", diff --git a/packages/driver-azure/package.json b/packages/driver-azure/package.json index 085999ec..c0d62743 100644 --- a/packages/driver-azure/package.json +++ b/packages/driver-azure/package.json @@ -36,7 +36,7 @@ "eslint-config-airbnb": "^19.0.4", "eslint-config-oclif": "^4", "eslint-config-oclif-typescript": "^1.0.3", - "eslint-plugin-import": "^2.27.5", + "eslint-plugin-import": "^2.29.0", "eslint-plugin-jest": "27.4.2", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.32.2", diff --git a/packages/driver-gce/package.json b/packages/driver-gce/package.json index 08b99392..5d159320 100644 --- a/packages/driver-gce/package.json +++ b/packages/driver-gce/package.json @@ -32,7 +32,7 @@ "eslint-config-airbnb": "^19.0.4", "eslint-config-oclif": "^4", "eslint-config-oclif-typescript": "^1.0.3", - "eslint-plugin-import": "^2.27.5", + "eslint-plugin-import": "^2.29.0", "eslint-plugin-jest": "27.4.2", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.32.2", diff --git a/packages/driver-kube-pod/package.json b/packages/driver-kube-pod/package.json index ba699ae4..ff3a6c59 100644 --- a/packages/driver-kube-pod/package.json +++ b/packages/driver-kube-pod/package.json @@ -34,7 +34,7 @@ "eslint-config-airbnb": "^19.0.4", "eslint-config-oclif": "^4", "eslint-config-oclif-typescript": "^1.0.3", - "eslint-plugin-import": "^2.27.5", + "eslint-plugin-import": "^2.29.0", "eslint-plugin-jest": "27.4.2", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.32.2", diff --git a/packages/driver-lightsail/package.json b/packages/driver-lightsail/package.json index 00295b79..edbc0373 100644 --- a/packages/driver-lightsail/package.json +++ b/packages/driver-lightsail/package.json @@ -32,7 +32,7 @@ "eslint-config-airbnb": "^19.0.4", "eslint-config-oclif": "^4", "eslint-config-oclif-typescript": "^1.0.3", - "eslint-plugin-import": "^2.27.5", + "eslint-plugin-import": "^2.29.0", "eslint-plugin-jest": "27.4.2", "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-react": "^7.32.2", diff --git a/yarn.lock b/yarn.lock index 9201edc1..65ef54f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6270,6 +6270,14 @@ end-of-stream@^1.1.0, end-of-stream@^1.4.1: dependencies: once "^1.4.0" +enhanced-resolve@^5.12.0: + version "5.15.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz#1af946c7d93603eb88e9896cee4904dc012e9c35" + integrity sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg== + dependencies: + graceful-fs "^4.2.4" + tapable "^2.2.0" + enquirer@~2.3.6: version "2.3.6" resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" @@ -6591,7 +6599,20 @@ eslint-import-resolver-node@^0.3.9: is-core-module "^2.13.0" resolve "^1.22.4" -eslint-module-utils@^2.8.0: +eslint-import-resolver-typescript@^3.6.1: + version "3.6.1" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.1.tgz#7b983680edd3f1c5bce1a5829ae0bc2d57fe9efa" + integrity sha512-xgdptdoi5W3niYeuQxKmzVDTATvLYqhpwmykwsh7f6HIOStGWEIL9iqZgQDF9u9OEzrRwR8no5q2VT+bjAujTg== + dependencies: + debug "^4.3.4" + enhanced-resolve "^5.12.0" + eslint-module-utils "^2.7.4" + fast-glob "^3.3.1" + get-tsconfig "^4.5.0" + is-core-module "^2.11.0" + is-glob "^4.0.3" + +eslint-module-utils@^2.7.4, eslint-module-utils@^2.8.0: version "2.8.0" resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz#e439fee65fc33f6bba630ff621efc38ec0375c49" integrity sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw== @@ -6606,7 +6627,7 @@ eslint-plugin-es@^3.0.0: eslint-utils "^2.0.0" regexpp "^3.0.0" -eslint-plugin-import@^2.27.5: +eslint-plugin-import@^2.29.0: version "2.29.0" resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.29.0.tgz#8133232e4329ee344f2f612885ac3073b0b7e155" integrity sha512-QPOO5NO6Odv5lpoTkddtutccQjysJuFxoPS7fAHO+9m9udNHvTCPSAMW9zGAYj8lAIdr40I8yPCdUYrncXtrwg== @@ -7032,6 +7053,17 @@ fast-glob@^3.2.9: merge2 "^1.3.0" micromatch "^4.0.4" +fast-glob@^3.3.1: + version "3.3.2" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" + integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" @@ -7580,7 +7612,7 @@ get-symbol-description@^1.0.0: call-bind "^1.0.2" get-intrinsic "^1.1.1" -get-tsconfig@^4.7.2: +get-tsconfig@^4.5.0, get-tsconfig@^4.7.2: version "4.7.2" resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.7.2.tgz#0dcd6fb330391d46332f4c6c1bf89a6514c2ddce" integrity sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A== @@ -8392,7 +8424,7 @@ is-core-module@2.9.0: dependencies: has "^1.0.3" -is-core-module@^2.13.0, is-core-module@^2.13.1, is-core-module@^2.5.0, is-core-module@^2.8.1, is-core-module@^2.9.0: +is-core-module@^2.11.0, is-core-module@^2.13.0, is-core-module@^2.13.1, is-core-module@^2.5.0, is-core-module@^2.8.1, is-core-module@^2.9.0: version "2.13.1" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384" integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw== @@ -13065,6 +13097,11 @@ syncpack@^9.8.4: tightrope "0.1.0" zod "3.21.4" +tapable@^2.2.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" + integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== + tar-fs@^2.0.0, tar-fs@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-2.1.1.tgz#489a15ab85f1f0befabb370b7de4f9eb5cbe8784"