sdk-monorepo/.vscode/settings.json
T-Hax f88fc5c812 Set up to work with PNP
Signed-off-by: T-Hax <>
2023-04-29 16:44:05 +00:00

33 lines
1.1 KiB
JSON

{
// Use the local version of Typescript
"typescript.tsdk": ".yarn/sdks/typescript/lib",
// 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.
"eslint.validate": [
"javascript",
"typescript"
],
// 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",
"javascript.updateImportsOnFileMove.enabled": "always",
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"typescript.enablePromptUseWorkspaceTsdk": true
}