Skip to content

Commit c20f631

Browse files
renovate[bot]renovate-botFeiyang1
authored
Update typescript-eslint monorepo to v4 (major) (#3767)
* Update typescript-eslint monorepo to v4 * fix lint errors Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Feiyang1 <[email protected]>
1 parent cb1caa0 commit c20f631

File tree

6 files changed

+63
-58
lines changed

6 files changed

+63
-58
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@
8383
"@types/sinon-chai": "3.2.4",
8484
"@types/tmp": "0.2.0",
8585
"@types/yargs": "15.0.5",
86-
"@typescript-eslint/eslint-plugin": "3.10.1",
87-
"@typescript-eslint/eslint-plugin-tslint": "3.10.1",
88-
"@typescript-eslint/parser": "3.10.1",
86+
"@typescript-eslint/eslint-plugin": "4.2.0",
87+
"@typescript-eslint/eslint-plugin-tslint": "4.2.0",
88+
"@typescript-eslint/parser": "4.2.0",
8989
"babel-loader": "8.1.0",
9090
"chai": "4.2.0",
9191
"chai-as-promised": "7.1.1",

packages/app/src/lite/firebaseAppLite.ts

-6
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ import {
3535
Name
3636
} from '@firebase/component';
3737

38-
interface ServicesCache {
39-
[name: string]: {
40-
[serviceName: string]: FirebaseService;
41-
};
42-
}
43-
4438
/**
4539
* Global context object for a collection of services using
4640
* a shared authentication state.

packages/firestore/src/remote/rest_connection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export abstract class RestConnection implements Connection {
144144
body: Req
145145
): Promise<Resp>;
146146

147-
private makeUrl<Req>(rpcName: string, path: string): string {
147+
private makeUrl(rpcName: string, path: string): string {
148148
const urlRpcName = RPC_NAME_URL_MAPPING[rpcName];
149149
debugAssert(
150150
urlRpcName !== undefined,

packages/firestore/src/util/obj.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface Dict<V> {
2121
[stringKey: string]: V;
2222
}
2323

24-
export function objectSize<V>(obj: object): number {
24+
export function objectSize(obj: object): number {
2525
let count = 0;
2626
for (const key in obj) {
2727
if (Object.prototype.hasOwnProperty.call(obj, key)) {

packages/messaging/src/util/sw-types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
// Not the whole interface, just the parts we're currently using. If TS claims that something does
2929
// not exist on this, feel free to add it.
30+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3031
interface ServiceWorkerGlobalScope {
3132
readonly location: WorkerLocation;
3233
readonly clients: Clients;

yarn.lock

+57-47
Original file line numberDiff line numberDiff line change
@@ -2439,11 +2439,6 @@
24392439
dependencies:
24402440
"@types/node" "*"
24412441

2442-
"@types/eslint-visitor-keys@^1.0.0":
2443-
version "1.0.0"
2444-
resolved "https://registry.npmjs.org/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d"
2445-
integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==
2446-
24472442
"@types/estree@*":
24482443
version "0.0.45"
24492444
resolved "https://registry.npmjs.org/@types/estree/-/estree-0.0.45.tgz#e9387572998e5ecdac221950dab3e8c3b16af884"
@@ -2704,73 +2699,83 @@
27042699
dependencies:
27052700
"@types/node" "*"
27062701

2707-
"@typescript-eslint/eslint-plugin-tslint@3.10.1":
2708-
version "3.10.1"
2709-
resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin-tslint/-/eslint-plugin-tslint-3.10.1.tgz#0c01577635fd5c3469a603e964b193306a923034"
2710-
integrity sha512-DD2sr8Qkoi0TUYlbxLGMivTvMz3i5s8qt7n3/ptWSO3fSQlnf43OeM6tQCujC1MWEKoOwDnyCuMehWwNm3Xi0w==
2702+
"@typescript-eslint/eslint-plugin-tslint@4.2.0":
2703+
version "4.2.0"
2704+
resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin-tslint/-/eslint-plugin-tslint-4.2.0.tgz#21bfd09d6f85ac2e80cb9f73d490f73e9da468e2"
2705+
integrity sha512-JUO9Evsjwc5tK0t7XOHgCZLYXzaopAAn2WjA6iaWJosyE+I2npuYX2i3iiYn3Y0JwMotUHj/SPjw0WAz4Swe+g==
27112706
dependencies:
2712-
"@typescript-eslint/experimental-utils" "3.10.1"
2707+
"@typescript-eslint/experimental-utils" "4.2.0"
27132708
lodash "^4.17.15"
27142709

2715-
"@typescript-eslint/eslint-plugin@3.10.1":
2716-
version "3.10.1"
2717-
resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-3.10.1.tgz#7e061338a1383f59edc204c605899f93dc2e2c8f"
2718-
integrity sha512-PQg0emRtzZFWq6PxBcdxRH3QIQiyFO3WCVpRL3fgj5oQS3CDs3AeAKfv4DxNhzn8ITdNJGJ4D3Qw8eAJf3lXeQ==
2710+
"@typescript-eslint/eslint-plugin@4.2.0":
2711+
version "4.2.0"
2712+
resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.2.0.tgz#a3d5c11b377b7e18f3cd9c4e87d465fe9432669b"
2713+
integrity sha512-zBNRkzvLSwo6y5TG0DVcmshZIYBHKtmzD4N+LYnfTFpzc4bc79o8jNRSb728WV7A4Cegbs+MV5IRAj8BKBgOVQ==
27192714
dependencies:
2720-
"@typescript-eslint/experimental-utils" "3.10.1"
2715+
"@typescript-eslint/experimental-utils" "4.2.0"
2716+
"@typescript-eslint/scope-manager" "4.2.0"
27212717
debug "^4.1.1"
27222718
functional-red-black-tree "^1.0.1"
27232719
regexpp "^3.0.0"
27242720
semver "^7.3.2"
27252721
tsutils "^3.17.1"
27262722

2727-
"@typescript-eslint/experimental-utils@3.10.1":
2728-
version "3.10.1"
2729-
resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-3.10.1.tgz#e179ffc81a80ebcae2ea04e0332f8b251345a686"
2730-
integrity sha512-DewqIgscDzmAfd5nOGe4zm6Bl7PKtMG2Ad0KG8CUZAHlXfAKTF9Ol5PXhiMh39yRL2ChRH1cuuUGOcVyyrhQIw==
2723+
"@typescript-eslint/experimental-utils@4.2.0":
2724+
version "4.2.0"
2725+
resolved "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.2.0.tgz#3d0b5cd4aa61f5eb7aa1e873dea0db1410b062d2"
2726+
integrity sha512-5BBj6BjgHEndBaQQpUVzRIPERz03LBc0MCQkHwUaH044FJFL08SwWv/sQftk7gf0ShZ2xZysz0LTwCwNt4Xu3w==
27312727
dependencies:
27322728
"@types/json-schema" "^7.0.3"
2733-
"@typescript-eslint/types" "3.10.1"
2734-
"@typescript-eslint/typescript-estree" "3.10.1"
2729+
"@typescript-eslint/scope-manager" "4.2.0"
2730+
"@typescript-eslint/types" "4.2.0"
2731+
"@typescript-eslint/typescript-estree" "4.2.0"
27352732
eslint-scope "^5.0.0"
27362733
eslint-utils "^2.0.0"
27372734

2738-
"@typescript-eslint/parser@3.10.1":
2739-
version "3.10.1"
2740-
resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-3.10.1.tgz#1883858e83e8b442627e1ac6f408925211155467"
2741-
integrity sha512-Ug1RcWcrJP02hmtaXVS3axPPTTPnZjupqhgj+NnZ6BCkwSImWk/283347+x9wN+lqOdK9Eo3vsyiyDHgsmiEJw==
2735+
"@typescript-eslint/parser@4.2.0":
2736+
version "4.2.0"
2737+
resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.2.0.tgz#1879ef400abd73d972e20f14c3522e5b343d1d1b"
2738+
integrity sha512-54jJ6MwkOtowpE48C0QJF9iTz2/NZxfKVJzv1ha5imigzHbNSLN9yvbxFFH1KdlRPQrlR8qxqyOvLHHxd397VA==
27422739
dependencies:
2743-
"@types/eslint-visitor-keys" "^1.0.0"
2744-
"@typescript-eslint/experimental-utils" "3.10.1"
2745-
"@typescript-eslint/types" "3.10.1"
2746-
"@typescript-eslint/typescript-estree" "3.10.1"
2747-
eslint-visitor-keys "^1.1.0"
2740+
"@typescript-eslint/scope-manager" "4.2.0"
2741+
"@typescript-eslint/types" "4.2.0"
2742+
"@typescript-eslint/typescript-estree" "4.2.0"
2743+
debug "^4.1.1"
2744+
2745+
"@typescript-eslint/[email protected]":
2746+
version "4.2.0"
2747+
resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.2.0.tgz#d10e6854a65e175b22a28265d372a97c8cce4bfc"
2748+
integrity sha512-Tb402cxxObSxWIVT+PnBp5ruT2V/36yj6gG4C9AjkgRlZpxrLAzWDk3neen6ToMBGeGdxtnfFLoJRUecGz9mYQ==
2749+
dependencies:
2750+
"@typescript-eslint/types" "4.2.0"
2751+
"@typescript-eslint/visitor-keys" "4.2.0"
27482752

2749-
"@typescript-eslint/types@3.10.1":
2750-
version "3.10.1"
2751-
resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-3.10.1.tgz#1d7463fa7c32d8a23ab508a803ca2fe26e758727"
2752-
integrity sha512-+3+FCUJIahE9q0lDi1WleYzjCwJs5hIsbugIgnbB+dSCYUxl8L6PwmsyOPFZde2hc1DlTo/xnkOgiTLSyAbHiQ==
2753+
"@typescript-eslint/types@4.2.0":
2754+
version "4.2.0"
2755+
resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.2.0.tgz#6f6b094329e72040f173123832397c7c0b910fc8"
2756+
integrity sha512-xkv5nIsxfI/Di9eVwN+G9reWl7Me9R5jpzmZUch58uQ7g0/hHVuGUbbn4NcxcM5y/R4wuJIIEPKPDb5l4Fdmwg==
27532757

2754-
"@typescript-eslint/typescript-estree@3.10.1":
2755-
version "3.10.1"
2756-
resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-3.10.1.tgz#fd0061cc38add4fad45136d654408569f365b853"
2757-
integrity sha512-QbcXOuq6WYvnB3XPsZpIwztBoquEYLXh2MtwVU+kO8jgYCiv4G5xrSP/1wg4tkvrEE+esZVquIPX/dxPlePk1w==
2758+
"@typescript-eslint/typescript-estree@4.2.0":
2759+
version "4.2.0"
2760+
resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.2.0.tgz#9d746240991c305bf225ad5e96cbf57e7fea0551"
2761+
integrity sha512-iWDLCB7z4MGkLipduF6EOotdHNtgxuNKnYD54nMS/oitFnsk4S3S/TE/UYXQTra550lHtlv9eGmp+dvN9pUDtA==
27582762
dependencies:
2759-
"@typescript-eslint/types" "3.10.1"
2760-
"@typescript-eslint/visitor-keys" "3.10.1"
2763+
"@typescript-eslint/types" "4.2.0"
2764+
"@typescript-eslint/visitor-keys" "4.2.0"
27612765
debug "^4.1.1"
2762-
glob "^7.1.6"
2766+
globby "^11.0.1"
27632767
is-glob "^4.0.1"
27642768
lodash "^4.17.15"
27652769
semver "^7.3.2"
27662770
tsutils "^3.17.1"
27672771

2768-
"@typescript-eslint/visitor-keys@3.10.1":
2769-
version "3.10.1"
2770-
resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-3.10.1.tgz#cd4274773e3eb63b2e870ac602274487ecd1e931"
2771-
integrity sha512-9JgC82AaQeglebjZMgYR5wgmfUdUc+EitGUUMW8u2nDckaeimzW+VsoLV6FoimPv2id3VQzfjwBxEMVz08ameQ==
2772+
"@typescript-eslint/visitor-keys@4.2.0":
2773+
version "4.2.0"
2774+
resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.2.0.tgz#ae13838e3a260b63ae51021ecaf1d0cdea8dbba5"
2775+
integrity sha512-WIf4BNOlFOH2W+YqGWa6YKLcK/EB3gEj2apCrqLw6mme1RzBy0jtJ9ewJgnrZDB640zfnv8L+/gwGH5sYp/rGw==
27722776
dependencies:
2773-
eslint-visitor-keys "^1.1.0"
2777+
"@typescript-eslint/types" "4.2.0"
2778+
eslint-visitor-keys "^2.0.0"
27742779

27752780
"@webassemblyjs/[email protected]":
27762781
version "1.9.0"
@@ -6208,6 +6213,11 @@ eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0:
62086213
resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e"
62096214
integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==
62106215

6216+
eslint-visitor-keys@^2.0.0:
6217+
version "2.0.0"
6218+
resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.0.0.tgz#21fdc8fbcd9c795cc0321f0563702095751511a8"
6219+
integrity sha512-QudtT6av5WXels9WjIM7qz1XD1cWGvX4gGXvp/zBn9nXG02D0utdU3Em2m/QjTnrsk6bBjmCygl3rmj118msQQ==
6220+
62116221
62126222
version "7.9.0"
62136223
resolved "https://registry.npmjs.org/eslint/-/eslint-7.9.0.tgz#522aeccc5c3a19017cf0cb46ebfd660a79acf337"
@@ -7530,7 +7540,7 @@ globby@^10.0.1:
75307540
merge2 "^1.2.3"
75317541
slash "^3.0.0"
75327542

7533-
globby@^11.0.0:
7543+
globby@^11.0.0, globby@^11.0.1:
75347544
version "11.0.1"
75357545
resolved "https://registry.npmjs.org/globby/-/globby-11.0.1.tgz#9a2bf107a068f3ffeabc49ad702c79ede8cfd357"
75367546
integrity sha512-iH9RmgwCmUJHi2z5o2l3eTtGBtXek1OYlHrbcxOYugyHLmAsZrPj43OtHThd62Buh/Vv6VyCBD2bdyWcGNQqoQ==

0 commit comments

Comments
 (0)