Skip to content

Commit dc057af

Browse files
authored
Add .vscode folder. (#563)
This PR adds a `.vscode` folder with defaults for Oxfmt. This makes it so that VS Code runs `oxfmt` instead of any other installed code formatting extensions.
1 parent 12efba8 commit dc057af

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["oxc.oxc-vscode"]
3+
}

.vscode/settings.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"files.insertFinalNewline": true,
4+
"files.trimFinalNewlines": true,
5+
"[javascript]": {
6+
"editor.defaultFormatter": "oxc.oxc-vscode"
7+
},
8+
"[typescriptreact]": {
9+
"editor.defaultFormatter": "oxc.oxc-vscode"
10+
},
11+
"[typescript]": {
12+
"editor.defaultFormatter": "oxc.oxc-vscode"
13+
},
14+
"[json]": {
15+
"editor.defaultFormatter": "oxc.oxc-vscode"
16+
},
17+
"typescript.preferences.importModuleSpecifierEnding": "js",
18+
"typescript.reportStyleChecksAsWarnings": false,
19+
"typescript.updateImportsOnFileMove.enabled": "always",
20+
"typescript.tsdk": "node_modules/typescript/lib",
21+
"typescript.experimental.useTsgo": true
22+
}

0 commit comments

Comments
 (0)