-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Adopt TypeScript 6 #3997
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
Adopt TypeScript 6 #3997
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 |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ export default defineConfig({ | |
| classPrefix: `rdg-${pkg.version.replaceAll('.', '-')}-` | ||
| }), | ||
| dts({ | ||
| tsconfig: './tsconfig.lib.json' | ||
| tsconfig: './tsconfig.src.json' | ||
|
Collaborator
Author
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. This seems to work just as well, so I removed the |
||
| }) | ||
| ] | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| declare module '*.css' {} |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,26 +1,19 @@ | ||||
| { | ||||
| "compilerOptions": { | ||||
| "allowSyntheticDefaultImports": true, | ||||
|
Collaborator
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. Do we need this?
Collaborator
Author
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. It's enabled by default I tried disabling it and it logged
Collaborator
Author
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. It does not log a deprecation warning if it's explicitly set to |
||||
| "composite": true, | ||||
| "emitDeclarationOnly": true, | ||||
| "erasableSyntaxOnly": true, | ||||
| "exactOptionalPropertyTypes": true, | ||||
| "forceConsistentCasingInFileNames": true, | ||||
|
Collaborator
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. Is this
Collaborator
Author
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. Yes it is. |
||||
| "isolatedModules": true, | ||||
| "jsx": "react-jsx", | ||||
| "lib": ["ESNext"], | ||||
| "libReplacement": false, | ||||
| "module": "esnext", | ||||
| "lib": [], | ||||
| "moduleDetection": "force", | ||||
| "moduleResolution": "bundler", | ||||
|
Collaborator
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.
Suggested change
This is the default, no?
Collaborator
Author
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. It should be, but with conditions. Maybe best to enforce it?
Collaborator
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. Sounds good! |
||||
| "noImplicitReturns": true, | ||||
| "noUnusedLocals": true, | ||||
| "outDir": "./.cache/ts", | ||||
| "pretty": true, | ||||
| "strict": true, | ||||
| "strictNullChecks": true, // TODO: remove once `typescript-eslint` supports TS 6 | ||||
| "target": "esnext", | ||||
| "types": [], | ||||
| "useUnknownInCatchVariables": true, | ||||
| "verbatimModuleSyntax": true | ||||
| } | ||||
| } | ||||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { | ||
| "extends": "./tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "lib": ["ESNext", "DOM", "DOM.Iterable", "DOM.AsyncIterable"] | ||
| "lib": ["ESNext", "DOM"] | ||
| }, | ||
| "include": ["src/**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| { | ||
| "extends": "./tsconfig.base.json", | ||
| "compilerOptions": { | ||
| "lib": ["ESNext", "DOM", "DOM.Iterable", "DOM.AsyncIterable"], | ||
| "lib": ["ESNext", "DOM"], | ||
| "skipLibCheck": true | ||
| }, | ||
| "include": ["website/**/*"], | ||
| "include": ["src/css.d.ts", "website/**/*"], | ||
| "references": [{ "path": "tsconfig.src.json" }] | ||
|
Collaborator
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. Does
Collaborator
Author
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. No. You can check the output in |
||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.