-
Notifications
You must be signed in to change notification settings - Fork 0
chore: align tsconfig with project standard #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,25 +1,31 @@ | ||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||
| "compilerOptions": { | ||||||||||||||||||||||||||||||||
| "target": "ES2022", | ||||||||||||||||||||||||||||||||
| "lib": ["ES2022"], | ||||||||||||||||||||||||||||||||
| "module": "ESNext", | ||||||||||||||||||||||||||||||||
| "moduleResolution": "bundler", | ||||||||||||||||||||||||||||||||
| "types": ["bun-types"], | ||||||||||||||||||||||||||||||||
| "esModuleInterop": true, | ||||||||||||||||||||||||||||||||
| "skipLibCheck": true, | ||||||||||||||||||||||||||||||||
| "target": "ES2023", | ||||||||||||||||||||||||||||||||
| "lib": ["ESNext"], | ||||||||||||||||||||||||||||||||
| "allowJs": true, | ||||||||||||||||||||||||||||||||
| "resolveJsonModule": true, | ||||||||||||||||||||||||||||||||
| "moduleDetection": "force", | ||||||||||||||||||||||||||||||||
| "verbatimModuleSyntax": true, | ||||||||||||||||||||||||||||||||
|
Comment on lines
+3
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Both Since
Suggested change
|
||||||||||||||||||||||||||||||||
| "module": "Preserve", | ||||||||||||||||||||||||||||||||
| "moduleResolution": "Bundler", | ||||||||||||||||||||||||||||||||
| "noEmit": true, | ||||||||||||||||||||||||||||||||
|
Comment on lines
+3
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 Removal of The old config explicitly included Was this helpful? React with 👍 or 👎 to provide feedback. |
||||||||||||||||||||||||||||||||
| "strict": true, | ||||||||||||||||||||||||||||||||
| "exactOptionalPropertyTypes": true, | ||||||||||||||||||||||||||||||||
| "noUncheckedIndexedAccess": true, | ||||||||||||||||||||||||||||||||
| "noUnusedLocals": true, | ||||||||||||||||||||||||||||||||
| "noUnusedParameters": true, | ||||||||||||||||||||||||||||||||
| "noFallthroughCasesInSwitch": true, | ||||||||||||||||||||||||||||||||
| "noImplicitOverride": true, | ||||||||||||||||||||||||||||||||
| "noImplicitReturns": true, | ||||||||||||||||||||||||||||||||
| "noUnusedLocals": true, | ||||||||||||||||||||||||||||||||
| "noUnusedParameters": true, | ||||||||||||||||||||||||||||||||
| "useUnknownInCatchVariables": true, | ||||||||||||||||||||||||||||||||
| "forceConsistentCasingInFileNames": true, | ||||||||||||||||||||||||||||||||
| "skipLibCheck": true, | ||||||||||||||||||||||||||||||||
| "noUncheckedIndexedAccess": true, | ||||||||||||||||||||||||||||||||
| "exactOptionalPropertyTypes": true, | ||||||||||||||||||||||||||||||||
| "paths": { | ||||||||||||||||||||||||||||||||
| "#checksums/*": ["./src/_checksums/*"], | ||||||||||||||||||||||||||||||||
| "#util/*": ["./src/_util/*"] | ||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||
| "include": ["src"] | ||||||||||||||||||||||||||||||||
| "include": ["src"], | ||||||||||||||||||||||||||||||||
| "exclude": ["node_modules"] | ||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib: ["ESNext"]is broader thantarget: "ES2023"Setting
libto["ESNext"]makes all cutting-edge TypeScript type definitions available (e.g.Promise.try,Iteratorhelpers, futureArraymethods), even though thetargetis pinned toES2023. BecausenoEmit: trueis set and the actual build is performed bytsdown, TypeScript won't downcompile anything — but the mismatch means the type checker will happily accept code that uses APIs not yet available in ES2023 runtimes.If the intent is to match the
@stll/anonymizestandard exactly, this is fine as-is. If the intent is to enforce that only APIs available in ES2023 are used in source,"lib": ["ES2023"]would provide that guardrail.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!