Skip to content

Commit

Permalink
refactor: sync example tsconfig with template's
Browse files Browse the repository at this point in the history
  • Loading branch information
icidasset committed Dec 16, 2023
1 parent 1563f3c commit e8cf6ad
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion examples/demo/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
23 changes: 20 additions & 3 deletions examples/demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"]
}

0 comments on commit e8cf6ad

Please sign in to comment.