diff --git a/.vscode/settings.json b/.vscode/settings.json index 4bb760e..3c21311 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,8 +2,8 @@ "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "source.organizeImports": false + "source.fixAll.eslint": "explicit", + "source.organizeImports": "never" }, "eslint.validate": [ "javascript", diff --git a/examples/demo/src/main.ts b/examples/demo/src/main.ts index 4689fa8..4948574 100644 --- a/examples/demo/src/main.ts +++ b/examples/demo/src/main.ts @@ -51,6 +51,5 @@ if (await fs.exists(filePath)) { uint8arrays.toString(capsuleKey, 'base64') ) - // eslint-disable-next-line no-console h1.textContent = 'Time first seen: ' + dateTime } diff --git a/examples/demo/tsconfig.json b/examples/demo/tsconfig.json index 04257e0..dec7142 100644 --- a/examples/demo/tsconfig.json +++ b/examples/demo/tsconfig.json @@ -1,10 +1,27 @@ { - "extends": "../../tsconfig.json", "compilerOptions": { + "target": "ES2022", + "lib": ["ESNext", "DOM", "DOM.Iterable"], + "moduleDetection": "force", + "module": "ESNext", + "moduleResolution": "Bundler", "types": ["vite/client"], + "allowImportingTsExtensions": true, + "resolveJsonModule": true, "outDir": "dist", - "noEmit": true + "noEmit": true, + "isolatedModules": true, + "verbatimModuleSyntax": true, + "esModuleInterop": true, + // Advanced + "forceConsistentCasingInFileNames": true, + // Type Checking + "strict": true, + "noFallthroughCasesInSwitch": true, + "noImplicitReturns": false, + "noUnusedLocals": true, + "noUnusedParameters": false, + "skipLibCheck": true }, - "include": ["src", "test"], "exclude": ["node_modules", "dist", "out"] }