2023-04-08 22:17:52 +03:00
|
|
|
{
|
|
|
|
// Use the local version of Typescript
|
2023-04-29 19:44:05 +03:00
|
|
|
"typescript.tsdk": ".yarn/sdks/typescript/lib",
|
2023-04-08 22:17:52 +03: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 19:44:05 +03:00
|
|
|
"eslint.validate": [
|
|
|
|
"javascript",
|
|
|
|
"typescript"
|
|
|
|
],
|
2023-04-08 22:17:52 +03: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 19:44:05 +03: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 22:17:52 +03:00
|
|
|
}
|