2023-04-08 15:17:52 -04:00
|
|
|
{
|
|
|
|
// Use the local version of Typescript
|
2023-04-29 12:44:05 -04:00
|
|
|
"typescript.tsdk": ".yarn/sdks/typescript/lib",
|
2023-04-08 15:17:52 -04:00
|
|
|
// ESM requires extensions on import paths to work,
|
|
|
|
// these options tell VSCode to prefer adding extensions
|
|
|
|
// on auto-import.
|
|
|
|
"typescript.preferences.importModuleSpecifierEnding": "js",
|
|
|
|
"javascript.preferences.importModuleSpecifierEnding": "js",
|
|
|
|
// Make sure ESLint runs on target files.
|
2023-04-29 12:44:05 -04:00
|
|
|
"eslint.validate": [
|
|
|
|
"javascript",
|
|
|
|
"typescript"
|
|
|
|
],
|
2023-04-08 15:17:52 -04:00
|
|
|
// Check JavaScript by default (using the Typescript engine)
|
|
|
|
"js/ts.implicitProjectConfig.checkJs": true,
|
|
|
|
// Auto-format an fix files
|
|
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
|
|
"editor.formatOnSave": true,
|
|
|
|
"editor.codeActionsOnSave": {
|
|
|
|
"source.fixAll.eslint": true
|
|
|
|
},
|
|
|
|
// Let VSCode auto-update import paths when you move files around
|
|
|
|
"typescript.updateImportsOnFileMove.enabled": "always",
|
2023-04-29 12:44:05 -04:00
|
|
|
"javascript.updateImportsOnFileMove.enabled": "always",
|
|
|
|
"search.exclude": {
|
|
|
|
"**/.yarn": true,
|
|
|
|
"**/.pnp.*": true
|
|
|
|
},
|
|
|
|
"eslint.nodePath": ".yarn/sdks",
|
|
|
|
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
|
|
|
|
"typescript.enablePromptUseWorkspaceTsdk": true
|
2023-04-08 15:17:52 -04:00
|
|
|
}
|