commit 8440b640f6f721a7b3aea41dac67b49166f2d236
parent 29ff9a6966e10cb6e56f77a95ee3ca7e1a833465
Author: Florian Dold <florian@dold.me>
Date: Mon, 27 Jan 2025 16:09:56 +0100
move more packages to shared ts config
Diffstat:
6 files changed, 9 insertions(+), 63 deletions(-)
diff --git a/packages/taler-wallet-cli/tsconfig.json b/packages/taler-wallet-cli/tsconfig.json
@@ -1,25 +1,10 @@
{
- "compileOnSave": true,
+ "extends": "../../tsconfig.defaults.json",
"compilerOptions": {
- "composite": true,
- "target": "ES2020",
- "module": "Node16",
- "moduleResolution": "Node16",
- "sourceMap": true,
"lib": ["ES2020"],
- "noImplicitReturns": true,
- "noFallthroughCasesInSwitch": true,
- "strict": true,
- "strictPropertyInitialization": false,
"outDir": "lib",
- "noImplicitAny": true,
- "noImplicitThis": true,
- "incremental": true,
- "esModuleInterop": true,
- "importHelpers": true,
"rootDir": "src",
"baseUrl": "./src",
- "typeRoots": ["./node_modules/@types"]
},
"include": ["src/**/*", "../taler-util/src/twrpc.ts"],
"references": [
diff --git a/packages/taler-wallet-embedded/tsconfig.json b/packages/taler-wallet-embedded/tsconfig.json
@@ -1,28 +1,11 @@
{
- "compileOnSave": true,
+ "extends": "../../tsconfig.defaults.json",
"compilerOptions": {
- "composite": true,
- "declaration": true,
- "declarationMap": true,
- "target": "ES2020",
- "module": "Node16",
- "moduleResolution": "Node16",
- "sourceMap": true,
"lib": ["ES2020"],
- "noImplicitReturns": true,
- "noFallthroughCasesInSwitch": true,
- "strict": true,
- "strictPropertyInitialization": false,
"outDir": "lib",
- "noImplicitAny": true,
- "noImplicitThis": true,
"allowJs": true,
"checkJs": true,
- "incremental": true,
- "esModuleInterop": true,
- "importHelpers": true,
"rootDir": "./src",
- "typeRoots": ["./node_modules/@types"]
},
"include": ["src/**/*"],
"references": [
diff --git a/packages/taler-wallet-webextension/src/components/WalletActivity.tsx b/packages/taler-wallet-webextension/src/components/WalletActivity.tsx
@@ -932,6 +932,8 @@ export function ObservabilityEventsTable(): VNode {
/>
);
}
+ default:
+ return null;
}
})()}
</details>
diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts
@@ -214,6 +214,7 @@ function convertWalletActivityNotification(
};
}
}
+ return undefined;
}
function addNewWalletActivityNotification(
diff --git a/packages/taler-wallet-webextension/tsconfig.json b/packages/taler-wallet-webextension/tsconfig.json
@@ -1,26 +1,14 @@
{
+ "extends": "../../tsconfig.defaults.json",
"compilerOptions": {
- "composite": true,
"lib": ["es2020", "DOM"],
"jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
"jsxFactory": "h" /* Specify the JSX factory function to use when targeting react JSX emit, e.g. React.createElement or h. */,
"jsxFragmentFactory": "Fragment", // https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#custom-jsx-factories
- "moduleResolution": "Node16",
- "module": "Node16",
- "target": "ES2020",
"skipLibCheck": true,
"preserveSymlinks": true,
- "noImplicitAny": true,
"outDir": "lib",
- "noEmitOnError": true,
- "strict": true,
- "incremental": true,
- "sourceMap": true,
- "strictNullChecks": true,
- "esModuleInterop": true,
- "importHelpers": true,
"rootDir": "./src",
- "typeRoots": ["./node_modules/@types"]
},
"references": [
{
diff --git a/packages/web-util/tsconfig.json b/packages/web-util/tsconfig.json
@@ -1,28 +1,15 @@
{
+ "extends": "../../tsconfig.defaults.json",
"compilerOptions": {
- "composite": true,
- "declaration": true,
- "declarationMap": true,
- "target": "ES2020",
- "module": "Node16",
"jsx": "react",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
- "moduleResolution": "Node16",
- "sourceMap": true,
"lib": ["DOM", "ES2020"],
"outDir": "lib",
+ // FIXME: Why is this needed?
"preserveSymlinks": true,
+ // FIXME: Eventually, code should compile without this.
"skipLibCheck": true,
- "noImplicitReturns": true,
- "noFallthroughCasesInSwitch": true,
- "strict": true,
- "strictPropertyInitialization": false,
- "noImplicitAny": true,
- "noImplicitThis": true,
- "incremental": true,
- "esModuleInterop": true,
- "importHelpers": true,
"rootDir": "./src",
"typeRoots": ["./node_modules/@types"]
},