From 971d1d7948aab17e496561f1a0c913a5e9c8c501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Wed, 19 Apr 2023 23:26:08 +0800 Subject: [PATCH] refactor: disable `esModuleInterop` --- examples/_template/tsconfig.json | 2 +- examples/blocks/fetching-blocks/tsconfig.json | 2 +- examples/blocks/watching-blocks/tsconfig.json | 2 +- examples/clients/public-client/tsconfig.json | 2 +- examples/contracts/deploying-contracts/tsconfig.json | 2 +- examples/contracts/multicall/tsconfig.json | 2 +- examples/contracts/reading-contracts/tsconfig.json | 2 +- examples/contracts/writing-to-contracts/tsconfig.json | 2 +- examples/ens/tsconfig.json | 2 +- examples/filters-and-logs/block-event-logs/tsconfig.json | 2 +- examples/filters-and-logs/event-logs/tsconfig.json | 2 +- examples/transactions/fetching-transactions/tsconfig.json | 2 +- site/tsconfig.json | 2 +- tsconfig.base.json | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/examples/_template/tsconfig.json b/examples/_template/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/_template/tsconfig.json +++ b/examples/_template/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/blocks/fetching-blocks/tsconfig.json b/examples/blocks/fetching-blocks/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/blocks/fetching-blocks/tsconfig.json +++ b/examples/blocks/fetching-blocks/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/blocks/watching-blocks/tsconfig.json b/examples/blocks/watching-blocks/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/blocks/watching-blocks/tsconfig.json +++ b/examples/blocks/watching-blocks/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/clients/public-client/tsconfig.json b/examples/clients/public-client/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/clients/public-client/tsconfig.json +++ b/examples/clients/public-client/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/contracts/deploying-contracts/tsconfig.json b/examples/contracts/deploying-contracts/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/contracts/deploying-contracts/tsconfig.json +++ b/examples/contracts/deploying-contracts/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/contracts/multicall/tsconfig.json b/examples/contracts/multicall/tsconfig.json index a8ff07f4453..f1e1fc9687c 100644 --- a/examples/contracts/multicall/tsconfig.json +++ b/examples/contracts/multicall/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/contracts/reading-contracts/tsconfig.json b/examples/contracts/reading-contracts/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/contracts/reading-contracts/tsconfig.json +++ b/examples/contracts/reading-contracts/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/contracts/writing-to-contracts/tsconfig.json b/examples/contracts/writing-to-contracts/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/contracts/writing-to-contracts/tsconfig.json +++ b/examples/contracts/writing-to-contracts/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/ens/tsconfig.json b/examples/ens/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/ens/tsconfig.json +++ b/examples/ens/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/filters-and-logs/block-event-logs/tsconfig.json b/examples/filters-and-logs/block-event-logs/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/filters-and-logs/block-event-logs/tsconfig.json +++ b/examples/filters-and-logs/block-event-logs/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/filters-and-logs/event-logs/tsconfig.json b/examples/filters-and-logs/event-logs/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/filters-and-logs/event-logs/tsconfig.json +++ b/examples/filters-and-logs/event-logs/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/examples/transactions/fetching-transactions/tsconfig.json b/examples/transactions/fetching-transactions/tsconfig.json index eac16d14a6f..792bed04699 100644 --- a/examples/transactions/fetching-transactions/tsconfig.json +++ b/examples/transactions/fetching-transactions/tsconfig.json @@ -8,7 +8,7 @@ "strict": true, "resolveJsonModule": true, "isolatedModules": true, - "esModuleInterop": true, + "esModuleInterop": false, "noEmit": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/site/tsconfig.json b/site/tsconfig.json index 52b48e99b72..73da2a21613 100644 --- a/site/tsconfig.json +++ b/site/tsconfig.json @@ -6,7 +6,7 @@ "lib": ["DOM", "ESNext"], "strict": true, "jsx": "preserve", - "esModuleInterop": true, + "esModuleInterop": false, "skipLibCheck": true, "moduleResolution": "node", "resolveJsonModule": true, diff --git a/tsconfig.base.json b/tsconfig.base.json index 2732d7c27f8..52bb9cd78c0 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -24,7 +24,7 @@ "checkJs": false, // Interop constraints - "esModuleInterop": true, + "esModuleInterop": false, "forceConsistentCasingInFileNames": true, "verbatimModuleSyntax": true,