From 191df465b700aff99e239d88fcce501057d1da8e Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 24 Sep 2020 05:56:14 -0700 Subject: [PATCH] Updated to typescript 4 Summary: allow-large-files Updated to typescript 4. Note that this is no new major, the way TS numbers is that 4.0 is simply the number after 3.9 (so they refuse to use 3.10). Primarily reason is that it allows us to use `/** deprecated */`. although there are definitely more interesting improvements Reviewed By: passy, nikoant Differential Revision: D23869445 fbshipit-source-id: 54e251b398b8698d9b18898ce66c3203b32aa356 --- desktop/.eslintrc.js | 8 +- desktop/app/src/.eslintrc.js | 22 --- desktop/babel-transformer/package.json | 2 +- desktop/doctor/package.json | 2 +- desktop/eslint-plugin-flipper/package.json | 6 +- desktop/flipper-plugin/package.json | 2 +- desktop/package.json | 8 +- desktop/pkg-lib/package.json | 2 +- desktop/pkg/package.json | 2 +- desktop/pkg/src/__tests__/runLint.node.ts | 3 + desktop/plugin-lib/package.json | 2 +- desktop/scripts/jest-setup.js | 2 + desktop/yarn.lock | 164 +++++++++------------ flipper-js-client-sdk/package.json | 2 +- flipper-js-client-sdk/yarn.lock | 8 +- 15 files changed, 97 insertions(+), 138 deletions(-) delete mode 100644 desktop/app/src/.eslintrc.js diff --git a/desktop/.eslintrc.js b/desktop/.eslintrc.js index f4d156070..f7a349fe9 100644 --- a/desktop/.eslintrc.js +++ b/desktop/.eslintrc.js @@ -9,7 +9,7 @@ const fbjs = require('eslint-config-fbjs'); -// enforces copyright header and @format directive to be present in every file +// enforces copy-right header and @format directive to be present in every file const pattern = /^\*\r?\n[\S\s]*Facebook[\S\s]* \* @format\r?\n/; const builtInModules = [ @@ -25,7 +25,7 @@ const builtInModules = [ '@emotion/styled', ]; -const prettierConfig = require('./.prettierrc'); +const prettierConfig = require('./.prettierrc.json'); module.exports = { parser: 'babel-eslint', @@ -76,7 +76,9 @@ module.exports = { settings: { 'import/resolver': { typescript: { + alwaysTryTypes: true, extensions: ['.js', '.jsx', '.ts', '.tsx'], + project: '.', }, }, }, @@ -85,6 +87,8 @@ module.exports = { files: ['*.tsx', '*.ts'], parser: '@typescript-eslint/parser', rules: { + 'no-undef': 0, // taken care of by TypeScript already + 'import/no-unresolved': 0, // taken care of by TypeScript already 'prettier/prettier': [2, {...prettierConfig, parser: 'typescript'}], '@typescript-eslint/no-unused-vars': [ 1, diff --git a/desktop/app/src/.eslintrc.js b/desktop/app/src/.eslintrc.js deleted file mode 100644 index 80150c279..000000000 --- a/desktop/app/src/.eslintrc.js +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @format - */ - -// Eslint rules cascade. Rules defined here are merged with the rules -// defined in the parent directory. - -// Somewhat ironically, this particular file is not actually transformed by Babel -// and can't have ES6 imports/exports. -// eslint-disable-line import/no-commonjs -module.exports = { - plugins: ['import'], - rules: { - // Import rules from https://www.npmjs.com/package/eslint-plugin-import - 'import/no-commonjs': 1, - }, -}; diff --git a/desktop/babel-transformer/package.json b/desktop/babel-transformer/package.json index 228735c99..253e9ed59 100644 --- a/desktop/babel-transformer/package.json +++ b/desktop/babel-transformer/package.json @@ -36,7 +36,7 @@ "rimraf": "^3.0.2", "ts-jest": "^26.0.0", "ts-node": "^8", - "typescript": "^3.9.5" + "typescript": "^4.0.3" }, "scripts": { "reset": "rimraf lib *.tsbuildinfo", diff --git a/desktop/doctor/package.json b/desktop/doctor/package.json index d0aa4d53d..a3df6d594 100644 --- a/desktop/doctor/package.json +++ b/desktop/doctor/package.json @@ -21,7 +21,7 @@ "prettier": "^2.0.0", "ts-jest": "^26.0.0", "tslint-config-prettier": "^1.18.0", - "typescript": "^3.9.5" + "typescript": "^4.0.3" }, "scripts": { "reset": "rimraf lib *.tsbuildinfo", diff --git a/desktop/eslint-plugin-flipper/package.json b/desktop/eslint-plugin-flipper/package.json index efdaa6662..b3c0f6334 100644 --- a/desktop/eslint-plugin-flipper/package.json +++ b/desktop/eslint-plugin-flipper/package.json @@ -10,12 +10,12 @@ "license": "MIT", "bugs": "https://github.com/facebook/flipper/issues", "dependencies": { - "@typescript-eslint/experimental-utils": "^3.8.0", + "@typescript-eslint/experimental-utils": "^4.2.0", "fs-extra": "^9.0.1" }, "devDependencies": { "@types/jest": "26", - "@typescript-eslint/parser": "^3.8.0", + "@typescript-eslint/parser": "^4.2.0", "flipper-test-utils": "0.58.0", "jest": "^26", "metro-memory-fs": "^0.61.0", @@ -23,7 +23,7 @@ "rimraf": "^3.0.2", "ts-jest": "^26.0.0", "ts-node": "^8", - "typescript": "^3.9.5" + "typescript": "^4.0.3" }, "scripts": { "reset": "rimraf lib *.tsbuildinfo", diff --git a/desktop/flipper-plugin/package.json b/desktop/flipper-plugin/package.json index f1736baa2..48f4e3a7c 100644 --- a/desktop/flipper-plugin/package.json +++ b/desktop/flipper-plugin/package.json @@ -15,7 +15,7 @@ }, "devDependencies": { "@types/jest": "^26.0.3", - "typescript": "^3.9.5" + "typescript": "^4.0.3" }, "scripts": { "reset": "rimraf lib *.tsbuildinfo", diff --git a/desktop/package.json b/desktop/package.json index 4a3f36f8d..449215ee6 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -163,8 +163,8 @@ "@types/ws": "^7.2.0", "@types/yargs": "^15.0.4", "@types/yazl": "^2.4.2", - "@typescript-eslint/eslint-plugin": "^2.27.0", - "@typescript-eslint/parser": "^2.19.2", + "@typescript-eslint/eslint-plugin": "^4.2.0", + "@typescript-eslint/parser": "^4.2.0", "ansi-to-html": "^0.6.3", "babel-eslint": "^10.1.0", "chalk": "^4.0.0", @@ -175,7 +175,7 @@ "eslint": "^7.4.0", "eslint-config-fbjs": "^3.1.1", "eslint-config-prettier": "^6.10.1", - "eslint-import-resolver-typescript": "^2.0.0", + "eslint-import-resolver-typescript": "^2.3.0", "eslint-plugin-babel": "^5.3.1", "eslint-plugin-flipper": "0.58.0", "eslint-plugin-flowtype": "^4.7.0", @@ -221,7 +221,7 @@ "tmp": "^0.2.1", "ts-jest": "^26.0.0", "ts-node": "^8.8.1", - "typescript": "^3.9.5", + "typescript": "^4.0.3", "uuid": "^8.3.0", "yargs": "^15.4.1", "yazl": "^2.5.1" diff --git a/desktop/pkg-lib/package.json b/desktop/pkg-lib/package.json index 36b1fd89b..638647e38 100644 --- a/desktop/pkg-lib/package.json +++ b/desktop/pkg-lib/package.json @@ -26,7 +26,7 @@ "rimraf": "^3.0.2", "ts-jest": "^26.0.0", "ts-node": "^8", - "typescript": "^3.9.5" + "typescript": "^4.0.3" }, "scripts": { "reset": "rimraf lib *.tsbuildinfo", diff --git a/desktop/pkg/package.json b/desktop/pkg/package.json index ce00c3527..6a746d8ef 100644 --- a/desktop/pkg/package.json +++ b/desktop/pkg/package.json @@ -41,7 +41,7 @@ "rimraf": "^3.0.2", "ts-jest": "^26.0.0", "ts-node": "^8", - "typescript": "^3.9.5" + "typescript": "^4.0.3" }, "scripts": { "reset": "rimraf lib *.tsbuildinfo", diff --git a/desktop/pkg/src/__tests__/runLint.node.ts b/desktop/pkg/src/__tests__/runLint.node.ts index e5ad93d7d..243ef3105 100644 --- a/desktop/pkg/src/__tests__/runLint.node.ts +++ b/desktop/pkg/src/__tests__/runLint.node.ts @@ -59,6 +59,7 @@ test('valid scoped package json', async () => { test('$schema field is required', async () => { const testPackageJson = Object.assign({}, validPackageJson); + // @ts-ignore cannot delete non-optional fields delete testPackageJson.$schema; const json = JSON.stringify(testPackageJson); fs.readFile = jest.fn().mockResolvedValue(new Buffer(json)); @@ -92,6 +93,7 @@ test('supported schema is required', async () => { test('name is required', async () => { const testPackageJson = Object.assign({}, validPackageJson); + // @ts-ignore cannot delete non-optional fields delete testPackageJson.name; const json = JSON.stringify(testPackageJson); fs.readFile = jest.fn().mockResolvedValue(new Buffer(json)); @@ -150,6 +152,7 @@ test('flippeBundlerEntry must point to an existing file', async () => { test('multiple validation errors reported', async () => { const testPackageJson = Object.assign({}, validPackageJson); testPackageJson.keywords = ['flipper']; + // @ts-ignore cannot delete non-optional fields delete testPackageJson.flipperBundlerEntry; const json = JSON.stringify(testPackageJson); fs.readFile = jest.fn().mockResolvedValue(new Buffer(json)); diff --git a/desktop/plugin-lib/package.json b/desktop/plugin-lib/package.json index da327a5c5..7244f7548 100644 --- a/desktop/plugin-lib/package.json +++ b/desktop/plugin-lib/package.json @@ -35,7 +35,7 @@ "rimraf": "^3.0.2", "ts-jest": "^26.0.0", "ts-node": "^8", - "typescript": "^3.9.5" + "typescript": "^4.0.3" }, "scripts": { "reset": "rimraf lib *.tsbuildinfo", diff --git a/desktop/scripts/jest-setup.js b/desktop/scripts/jest-setup.js index d37909386..5cca3996c 100644 --- a/desktop/scripts/jest-setup.js +++ b/desktop/scripts/jest-setup.js @@ -7,6 +7,8 @@ * @format */ +// import/no-unresolved complains, although it is a perfectly fine import +// eslint-disable-next-line global.fetch = require('jest-fetch-mock'); require('immer').enableMapSet(); diff --git a/desktop/yarn.lock b/desktop/yarn.lock index a2450ba58..e90f3a0f2 100644 --- a/desktop/yarn.lock +++ b/desktop/yarn.lock @@ -2009,11 +2009,6 @@ resolved "https://registry.yarnpkg.com/@types/electron-devtools-installer/-/electron-devtools-installer-2.2.0.tgz#32ee4ebbe99b3daf9847a6d2097dc00b5de94f10" integrity sha512-HJNxpaOXuykCK4rQ6FOMxAA0NLFYsf7FiPFGmab0iQmtVBHSAfxzy3MRFpLTTDDWbV0yD2YsHOQvdu8yCqtCfw== -"@types/eslint-visitor-keys@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" - integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag== - "@types/events@*": version "3.0.0" resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7" @@ -2552,7 +2547,7 @@ dependencies: "@types/node" "*" -"@typescript-eslint/eslint-plugin@^2.27.0", "@typescript-eslint/eslint-plugin@^2.8.0": +"@typescript-eslint/eslint-plugin@^2.8.0": version "2.28.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.28.0.tgz#4431bc6d3af41903e5255770703d4e55a0ccbdec" integrity sha512-w0Ugcq2iatloEabQP56BRWJowliXUP5Wv6f9fKzjJmDW81hOTBxRoJ4LoEOxRpz9gcY51Libytd2ba3yLmSOfg== @@ -2562,14 +2557,18 @@ regexpp "^3.0.0" tsutils "^3.17.1" -"@typescript-eslint/experimental-utils@2.19.2": - version "2.19.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.19.2.tgz#4611d44cf0f0cb460c26aa7676fc0a787281e233" - integrity sha512-B88QuwT1wMJR750YvTJBNjMZwmiPpbmKYLm1yI7PCc3x0NariqPwqaPsoJRwU9DmUi0cd9dkhz1IqEnwfD+P1A== +"@typescript-eslint/eslint-plugin@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.2.0.tgz#a3d5c11b377b7e18f3cd9c4e87d465fe9432669b" + integrity sha512-zBNRkzvLSwo6y5TG0DVcmshZIYBHKtmzD4N+LYnfTFpzc4bc79o8jNRSb728WV7A4Cegbs+MV5IRAj8BKBgOVQ== dependencies: - "@types/json-schema" "^7.0.3" - "@typescript-eslint/typescript-estree" "2.19.2" - eslint-scope "^5.0.0" + "@typescript-eslint/experimental-utils" "4.2.0" + "@typescript-eslint/scope-manager" "4.2.0" + debug "^4.1.1" + functional-red-black-tree "^1.0.1" + regexpp "^3.0.0" + semver "^7.3.2" + tsutils "^3.17.1" "@typescript-eslint/experimental-utils@2.28.0": version "2.28.0" @@ -2581,55 +2580,40 @@ eslint-scope "^5.0.0" eslint-utils "^2.0.0" -"@typescript-eslint/experimental-utils@3.8.0", "@typescript-eslint/experimental-utils@^3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-3.8.0.tgz#ac1f7c88322dcfb7635ece6f0441516dd951099a" - integrity sha512-o8T1blo1lAJE0QDsW7nSyvZHbiDzQDjINJKyB44Z3sSL39qBy5L10ScI/XwDtaiunoyKGLiY9bzRk4YjsUZl8w== +"@typescript-eslint/experimental-utils@4.2.0", "@typescript-eslint/experimental-utils@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.2.0.tgz#3d0b5cd4aa61f5eb7aa1e873dea0db1410b062d2" + integrity sha512-5BBj6BjgHEndBaQQpUVzRIPERz03LBc0MCQkHwUaH044FJFL08SwWv/sQftk7gf0ShZ2xZysz0LTwCwNt4Xu3w== dependencies: "@types/json-schema" "^7.0.3" - "@typescript-eslint/types" "3.8.0" - "@typescript-eslint/typescript-estree" "3.8.0" + "@typescript-eslint/scope-manager" "4.2.0" + "@typescript-eslint/types" "4.2.0" + "@typescript-eslint/typescript-estree" "4.2.0" eslint-scope "^5.0.0" eslint-utils "^2.0.0" -"@typescript-eslint/parser@^2.19.2": - version "2.19.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.19.2.tgz#21f42c0694846367e7d6a907feb08ab2f89c0879" - integrity sha512-8uwnYGKqX9wWHGPGdLB9sk9+12sjcdqEEYKGgbS8A0IvYX59h01o8os5qXUHMq2na8vpDRaV0suTLM7S8wraTA== - dependencies: - "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "2.19.2" - "@typescript-eslint/typescript-estree" "2.19.2" - eslint-visitor-keys "^1.1.0" - -"@typescript-eslint/parser@^3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-3.8.0.tgz#8e1dcd404299bf79492409c81c415fa95a7c622b" - integrity sha512-u5vjOBaCsnMVQOvkKCXAmmOhyyMmFFf5dbkM3TIbg3MZ2pyv5peE4gj81UAbTHwTOXEwf7eCQTUMKrDl/+qGnA== - dependencies: - "@types/eslint-visitor-keys" "^1.0.0" - "@typescript-eslint/experimental-utils" "3.8.0" - "@typescript-eslint/types" "3.8.0" - "@typescript-eslint/typescript-estree" "3.8.0" - eslint-visitor-keys "^1.1.0" - -"@typescript-eslint/types@3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-3.8.0.tgz#58581dd863f86e0cd23353d94362bb90b4bea796" - integrity sha512-8kROmEQkv6ss9kdQ44vCN1dTrgu4Qxrd2kXr10kz2NP5T8/7JnEfYNxCpPkArbLIhhkGLZV3aVMplH1RXQRF7Q== - -"@typescript-eslint/typescript-estree@2.19.2": - version "2.19.2" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.19.2.tgz#67485b00172f400474d243c6c0be27581a579350" - integrity sha512-Xu/qa0MDk6upQWqE4Qy2X16Xg8Vi32tQS2PR0AvnT/ZYS4YGDvtn2MStOh5y8Zy2mg4NuL06KUHlvCh95j9C6Q== +"@typescript-eslint/parser@^4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.2.0.tgz#1879ef400abd73d972e20f14c3522e5b343d1d1b" + integrity sha512-54jJ6MwkOtowpE48C0QJF9iTz2/NZxfKVJzv1ha5imigzHbNSLN9yvbxFFH1KdlRPQrlR8qxqyOvLHHxd397VA== dependencies: + "@typescript-eslint/scope-manager" "4.2.0" + "@typescript-eslint/types" "4.2.0" + "@typescript-eslint/typescript-estree" "4.2.0" debug "^4.1.1" - eslint-visitor-keys "^1.1.0" - glob "^7.1.6" - is-glob "^4.0.1" - lodash "^4.17.15" - semver "^6.3.0" - tsutils "^3.17.1" + +"@typescript-eslint/scope-manager@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.2.0.tgz#d10e6854a65e175b22a28265d372a97c8cce4bfc" + integrity sha512-Tb402cxxObSxWIVT+PnBp5ruT2V/36yj6gG4C9AjkgRlZpxrLAzWDk3neen6ToMBGeGdxtnfFLoJRUecGz9mYQ== + dependencies: + "@typescript-eslint/types" "4.2.0" + "@typescript-eslint/visitor-keys" "4.2.0" + +"@typescript-eslint/types@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.2.0.tgz#6f6b094329e72040f173123832397c7c0b910fc8" + integrity sha512-xkv5nIsxfI/Di9eVwN+G9reWl7Me9R5jpzmZUch58uQ7g0/hHVuGUbbn4NcxcM5y/R4wuJIIEPKPDb5l4Fdmwg== "@typescript-eslint/typescript-estree@2.28.0": version "2.28.0" @@ -2644,26 +2628,27 @@ semver "^6.3.0" tsutils "^3.17.1" -"@typescript-eslint/typescript-estree@3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-3.8.0.tgz#0606d19f629f813dbdd5a34c7a1e895d6191cac6" - integrity sha512-MTv9nPDhlKfclwnplRNDL44mP2SY96YmPGxmMbMy6x12I+pERcxpIUht7DXZaj4mOKKtet53wYYXU0ABaiXrLw== +"@typescript-eslint/typescript-estree@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.2.0.tgz#9d746240991c305bf225ad5e96cbf57e7fea0551" + integrity sha512-iWDLCB7z4MGkLipduF6EOotdHNtgxuNKnYD54nMS/oitFnsk4S3S/TE/UYXQTra550lHtlv9eGmp+dvN9pUDtA== dependencies: - "@typescript-eslint/types" "3.8.0" - "@typescript-eslint/visitor-keys" "3.8.0" + "@typescript-eslint/types" "4.2.0" + "@typescript-eslint/visitor-keys" "4.2.0" debug "^4.1.1" - glob "^7.1.6" + globby "^11.0.1" is-glob "^4.0.1" lodash "^4.17.15" semver "^7.3.2" tsutils "^3.17.1" -"@typescript-eslint/visitor-keys@3.8.0": - version "3.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-3.8.0.tgz#ad35110249fb3fc30a36bfcbfeea93e710cfaab1" - integrity sha512-gfqQWyVPpT9NpLREXNR820AYwgz+Kr1GuF3nf1wxpHD6hdxI62tq03ToomFnDxY0m3pUB39IF7sil7D5TQexLA== +"@typescript-eslint/visitor-keys@4.2.0": + version "4.2.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.2.0.tgz#ae13838e3a260b63ae51021ecaf1d0cdea8dbba5" + integrity sha512-WIf4BNOlFOH2W+YqGWa6YKLcK/EB3gEj2apCrqLw6mme1RzBy0jtJ9ewJgnrZDB640zfnv8L+/gwGH5sYp/rGw== dependencies: - eslint-visitor-keys "^1.1.0" + "@typescript-eslint/types" "4.2.0" + eslint-visitor-keys "^2.0.0" "@yarnpkg/lockfile@^1.1.0": version "1.1.0" @@ -5311,15 +5296,15 @@ eslint-import-resolver-node@^0.3.3: debug "^2.6.9" resolve "^1.13.1" -eslint-import-resolver-typescript@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.0.0.tgz#e95f126cc12d3018b9cc11692b4dbfd3e17d3ea6" - integrity sha512-bT5Frpl8UWoHBtY25vKUOMoVIMlJQOMefHLyQ4Tz3MQpIZ2N6yYKEEIHMo38bszBNUuMBW6M3+5JNYxeiGFH4w== +eslint-import-resolver-typescript@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-2.3.0.tgz#0870988098bc6c6419c87705e6b42bee89425445" + integrity sha512-MHSXvmj5e0SGOOBhBbt7C+fWj1bJbtSYFAD85Xeg8nvUtuooTod2HQb8bfhE9f5QyyNxEfgzqOYFCvmdDIcCuw== dependencies: debug "^4.1.1" + glob "^7.1.6" is-glob "^4.0.1" - resolve "^1.12.0" - tiny-glob "^0.2.6" + resolve "^1.17.0" tsconfig-paths "^3.9.0" eslint-module-utils@^2.6.0: @@ -5459,6 +5444,11 @@ eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.2 resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== +eslint-visitor-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8" + integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ== + eslint@^7.4.0: version "7.4.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.4.0.tgz#4e35a2697e6c1972f9d6ef2b690ad319f80f206f" @@ -6338,11 +6328,6 @@ globalthis@^1.0.0: function-bind "^1.1.1" object-keys "^1.0.12" -globalyzer@^0.1.0: - version "0.1.4" - resolved "https://registry.yarnpkg.com/globalyzer/-/globalyzer-0.1.4.tgz#bc8e273afe1ac7c24eea8def5b802340c5cc534f" - integrity sha512-LeguVWaxgHN0MNbWC6YljNMzHkrCny9fzjmEUdnF1kQ7wATFD1RHFRqA1qxaX2tgxGENlcxjOflopBwj3YZiXA== - globby@^10.0.1: version "10.0.2" resolved "https://registry.yarnpkg.com/globby/-/globby-10.0.2.tgz#277593e745acaa4646c3ab411289ec47a0392543" @@ -6357,7 +6342,7 @@ globby@^10.0.1: merge2 "^1.2.3" slash "^3.0.0" -globby@^11, globby@^11.0.0: +globby@^11, globby@^11.0.0, globby@^11.0.1: version "11.0.1" resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.1.tgz#9a2bf107a068f3ffeabc49ad702c79ede8cfd357" integrity sha512-iH9RmgwCmUJHi2z5o2l3eTtGBtXek1OYlHrbcxOYugyHLmAsZrPj43OtHThd62Buh/Vv6VyCBD2bdyWcGNQqoQ== @@ -6369,11 +6354,6 @@ globby@^11, globby@^11.0.0: merge2 "^1.3.0" slash "^3.0.0" -globrex@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/globrex/-/globrex-0.1.2.tgz#dd5d9ec826232730cd6793a5e33a9302985e6098" - integrity sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg== - globule@^1.0.0: version "1.3.1" resolved "https://registry.yarnpkg.com/globule/-/globule-1.3.1.tgz#90a25338f22b7fbeb527cee63c629aea754d33b9" @@ -12280,14 +12260,6 @@ through@2, "through@>=2.2.7 <3", through@^2.3.6, through@^2.3.8: resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= -tiny-glob@^0.2.6: - version "0.2.6" - resolved "https://registry.yarnpkg.com/tiny-glob/-/tiny-glob-0.2.6.tgz#9e056e169d9788fe8a734dfa1ff02e9b92ed7eda" - integrity sha512-A7ewMqPu1B5PWwC3m7KVgAu96Ch5LA0w4SnEN/LbDREj/gAD0nPWboRbn8YoP9ISZXqeNAlMvKSKoEuhcfK3Pw== - dependencies: - globalyzer "^0.1.0" - globrex "^0.1.1" - tinycolor2@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.1.tgz#f4fad333447bc0b07d4dc8e9209d8f39a8ac77e8" @@ -12574,10 +12546,10 @@ typedarray@^0.0.6: resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= -typescript@^3.9.5: - version "3.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.5.tgz#586f0dba300cde8be52dd1ac4f7e1009c1b13f36" - integrity sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ== +typescript@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5" + integrity sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg== ua-parser-js@^0.7.18: version "0.7.20" diff --git a/flipper-js-client-sdk/package.json b/flipper-js-client-sdk/package.json index db13b4899..993ef8a8a 100644 --- a/flipper-js-client-sdk/package.json +++ b/flipper-js-client-sdk/package.json @@ -27,7 +27,7 @@ "licenseFilename": "LICENSE", "readmeFilename": "README.md", "devDependencies": { - "typescript": "^4.0.2", + "typescript": "^4.0.3", "@typescript-eslint/eslint-plugin": "^2.27.0", "@typescript-eslint/parser": "^2.19.2", "ansi-to-html": "^0.6.3", diff --git a/flipper-js-client-sdk/yarn.lock b/flipper-js-client-sdk/yarn.lock index a3415c0ff..e073480dc 100644 --- a/flipper-js-client-sdk/yarn.lock +++ b/flipper-js-client-sdk/yarn.lock @@ -1704,10 +1704,10 @@ type-fest@^0.8.1: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== -typescript@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.2.tgz#7ea7c88777c723c681e33bf7988be5d008d05ac2" - integrity sha512-e4ERvRV2wb+rRZ/IQeb3jm2VxBsirQLpQhdxplZ2MEzGvDkkMmPglecnNDfSUBivMjP93vRbngYYDQqQ/78bcQ== +typescript@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5" + integrity sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg== uri-js@^4.2.2: version "4.2.2"