mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 22:09:27 +02:00
* [Dev] Added `devcontainer.json` and VS code config files * Update settings.json * Removed "don't lint vscode json files" setting from `biome.jsonc` * Update settings.json * Update extensions.json Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update settings.json Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update settings.json Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update settings.json * Re-add `.vscode/` to Biome ignore list * Update settings.json Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Update .devcontainer/devcontainer.json Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> * Removed non-`extensions.json` files; added default config directly to devcontainer * Added mention of alternate dev setup to `CONTRIBUTING.md` * Update CONTRIBUTING.md Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com> --------- Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
62 lines
2.2 KiB
JSON
62 lines
2.2 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
|
|
{
|
|
"name": "Node.js & TypeScript",
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/github-cli:1": {
|
|
"installDirectlyFromGitHubRelease": true,
|
|
"version": "latest"
|
|
},
|
|
"ghcr.io/devcontainers-extra/features/pnpm:2": {
|
|
"version": "latest"
|
|
}
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"settings": {
|
|
// # Formatter configs
|
|
"editor.defaultFormatter": "biomejs.biome",
|
|
"editor.tabSize": 2,
|
|
"editor.insertSpaces": true,
|
|
"editor.codeActionsOnSave": {
|
|
"source.addMissingImports.ts": "always",
|
|
"source.removeUnusedImports": "always",
|
|
"source.fixAll.biome": "always",
|
|
"source.organizeImports.biome": "always"
|
|
},
|
|
"biome.suggestInstallingGlobally": false,
|
|
|
|
// # JS/TS setting overrides
|
|
"javascript.preferences.importModuleSpecifier": "non-relative",
|
|
"javascript.preferences.importModuleSpecifierEnding": "index",
|
|
"javascript.preferGoToSourceDefinition": true,
|
|
"javascript.updateImportsOnFileMove.enabled": "always",
|
|
|
|
"typescript.preferences.importModuleSpecifier": "non-relative",
|
|
"typescript.preferences.importModuleSpecifierEnding": "index",
|
|
"typescript.preferGoToSourceDefinition": true,
|
|
"typescript.updateImportsOnFileMove.enabled": "always",
|
|
|
|
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
|
|
|
|
// # Miscellaneous
|
|
"npm.packageManager": "pnpm",
|
|
"npm.scriptRunner": "pnpm",
|
|
"vitest.cliArguments": "--no-isolate"
|
|
},
|
|
"extensions": [
|
|
"biomejs.biome",
|
|
"YoavBls.pretty-ts-errors",
|
|
"vitest.explorer",
|
|
"adpyke.codesnap", // Bind to a hotkey (ctrl+\, etc) for best results
|
|
"aaron-bond.better-comments",
|
|
"MuTsunTsai.jsdoc-link"
|
|
]
|
|
}
|
|
},
|
|
"postCreateCommand": "pnpm install",
|
|
"forwardPorts": [8000]
|
|
}
|