-
Notifications
You must be signed in to change notification settings - Fork 778
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
79 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"create-cloudflare": minor | ||
--- | ||
|
||
Update openapi C3 template to include better ts types and lint command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,3 +169,4 @@ dist | |
# wrangler project | ||
|
||
.dev.vars | ||
.wrangler/ |
30 changes: 30 additions & 0 deletions
30
packages/create-cloudflare/templates/openapi/ts/biome.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": false, | ||
"clientKind": "git", | ||
"useIgnoreFile": false | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": [] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "tab" | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "double" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 19 additions & 21 deletions
40
packages/create-cloudflare/templates/openapi/ts/tsconfig.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowJs": true, | ||
"allowSyntheticDefaultImports": true, | ||
"baseUrl": "src", | ||
"declaration": true, | ||
"sourceMap": true, | ||
/* Base Options: */ | ||
"esModuleInterop": true, | ||
"inlineSourceMap": false, | ||
"lib": ["esnext"], | ||
"listEmittedFiles": false, | ||
"listFiles": false, | ||
"moduleResolution": "node", | ||
"noFallthroughCasesInSwitch": true, | ||
"pretty": true, | ||
"resolveJsonModule": true, | ||
"rootDir": ".", | ||
"skipLibCheck": true, | ||
"strict": false, | ||
"traceResolution": false, | ||
"outDir": "", | ||
"target": "esnext", | ||
"module": "esnext", | ||
"target": "es2022", | ||
"verbatimModuleSyntax": false, | ||
"allowJs": true, | ||
"resolveJsonModule": true, | ||
"moduleDetection": "force", | ||
/* Strictness */ | ||
"noImplicitAny": false, | ||
"noImplicitThis": true, | ||
"strictNullChecks": false, | ||
"strict": true, | ||
"noUncheckedIndexedAccess": true, | ||
/* If NOT transpiling with TypeScript: */ | ||
"moduleResolution": "Bundler", | ||
"module": "es2022", | ||
"noEmit": true, | ||
/* If your code runs in the DOM: */ | ||
"lib": ["es2022"], | ||
"types": [ | ||
"@types/node", | ||
"@types/service-worker-mock", | ||
"@cloudflare/workers-types" | ||
] | ||
}, | ||
"exclude": ["node_modules", "dist", "tests"], | ||
"include": ["src", "scripts"] | ||
"include": ["src", "worker-configuration.d.ts"] | ||
} |