Skip to content

Commit 359dc94

Browse files
authored
chore: update deprecated VS code rules (#16185)
Replacing depricated rules in all `.vscode/settings.json` ```json { "typescript.tsdk": "node_modules/typescript/lib", "typescript.enablePromptUseWorkspaceTsdk": true } ``` with proper ```json { "js/ts.tsdk.path": "node_modules/typescript/lib", "js/ts.tsdk.promptToUseWorkspaceVersion": true } ```
1 parent 2a26b5a commit 359dc94

12 files changed

Lines changed: 24 additions & 15 deletions

File tree

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"stylelint.validate": ["css", "scss"],
2828
"css.validate": false,
2929
"scss.validate": false,
30-
"typescript.tsdk": "node_modules/typescript/lib",
31-
"typescript.enablePromptUseWorkspaceTsdk": true,
30+
"js/ts.tsdk.path": "node_modules/typescript/lib",
31+
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
3232
// Load .git-blame-ignore-revs file
3333
"gitlens.advanced.blame.customArguments": ["--ignore-revs-file", ".git-blame-ignore-revs"],
3434
// Essentially disables bun test buttons

docs/typescript/ts-plugin.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ For teams, add the following to `.vscode/settings.json` so everyone is prompted
4747

4848
```json
4949
{
50-
"typescript.tsdk": "node_modules/typescript/lib",
51-
"typescript.enablePromptUseWorkspaceTsdk": true
50+
"js/ts.tsdk.path": "node_modules/typescript/lib",
51+
"js/ts.tsdk.promptToUseWorkspaceVersion": true
5252
}
5353
```
5454

templates/_template/.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"editor.formatOnSave": true
3232
},
3333
"editor.formatOnSaveMode": "file",
34-
"typescript.tsdk": "node_modules/typescript/lib",
34+
"js/ts.tsdk.path": "node_modules/typescript/lib",
35+
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
3536
"[javascript][typescript][typescriptreact]": {
3637
"editor.codeActionsOnSave": {
3738
"source.fixAll.eslint": "explicit"

templates/blank/.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"editor.formatOnSave": true
3232
},
3333
"editor.formatOnSaveMode": "file",
34-
"typescript.tsdk": "node_modules/typescript/lib",
34+
"js/ts.tsdk.path": "node_modules/typescript/lib",
35+
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
3536
"[javascript][typescript][typescriptreact]": {
3637
"editor.codeActionsOnSave": {
3738
"source.fixAll.eslint": "explicit"

templates/ecommerce/.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib",
3-
"typescript.enablePromptUseWorkspaceTsdk": true,
2+
"js/ts.tsdk.path": "node_modules/typescript/lib",
3+
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
44
"editor.codeActionsOnSave": {
55
"source.fixAll": "explicit",
66
"source.organizeImports": "explicit",

templates/plugin/.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"editor.formatOnSave": true
3232
},
3333
"editor.formatOnSaveMode": "file",
34-
"typescript.tsdk": "node_modules/typescript/lib",
34+
"js/ts.tsdk.path": "node_modules/typescript/lib",
35+
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
3536
"[javascript][typescript][typescriptreact]": {
3637
"editor.codeActionsOnSave": {
3738
"source.fixAll.eslint": "explicit"

templates/website/.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"editor.formatOnSave": true
3232
},
3333
"editor.formatOnSaveMode": "file",
34-
"typescript.tsdk": "node_modules/typescript/lib",
34+
"js/ts.tsdk.path": "node_modules/typescript/lib",
35+
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
3536
"[javascript][typescript][typescriptreact]": {
3637
"editor.codeActionsOnSave": {
3738
"source.fixAll.eslint": "explicit"

templates/with-cloudflare-d1/.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"editor.formatOnSave": true
3232
},
3333
"editor.formatOnSaveMode": "file",
34-
"typescript.tsdk": "node_modules/typescript/lib",
34+
"js/ts.tsdk.path": "node_modules/typescript/lib",
35+
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
3536
"[javascript][typescript][typescriptreact]": {
3637
"editor.codeActionsOnSave": {
3738
"source.fixAll.eslint": "explicit"

templates/with-postgres/.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"editor.formatOnSave": true
3232
},
3333
"editor.formatOnSaveMode": "file",
34-
"typescript.tsdk": "node_modules/typescript/lib",
34+
"js/ts.tsdk.path": "node_modules/typescript/lib",
35+
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
3536
"[javascript][typescript][typescriptreact]": {
3637
"editor.codeActionsOnSave": {
3738
"source.fixAll.eslint": "explicit"

templates/with-vercel-mongodb/.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"editor.formatOnSave": true
3232
},
3333
"editor.formatOnSaveMode": "file",
34-
"typescript.tsdk": "node_modules/typescript/lib",
34+
"js/ts.tsdk.path": "node_modules/typescript/lib",
35+
"js/ts.tsdk.promptToUseWorkspaceVersion": true,
3536
"[javascript][typescript][typescriptreact]": {
3637
"editor.codeActionsOnSave": {
3738
"source.fixAll.eslint": "explicit"

0 commit comments

Comments
 (0)