From 56ccf1906354e19171f1324625004dec78cc195a Mon Sep 17 00:00:00 2001 From: Zed Spencer-Milnes Date: Mon, 30 Dec 2024 10:13:01 +0000 Subject: [PATCH] chore: Devcontainer upgrade to Ubuntu Noble & Node 22 (#10770) --- .devcontainer/devcontainer.json | 44 ++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index ebe9e6a4270e..fcc62bf31d9e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,32 +1,36 @@ { - "image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04", - "settings": { - "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - }, - "[json]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - }, - "[jsonc]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true + "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04", + "customizations": { + "vscode": { + "settings": { + "[typescript]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + }, + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + }, + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true + } + }, + "extensions": [ + "dbaeumer.vscode-eslint", + "orta.vscode-jest", + "esbenp.prettier-vscode", + "streetsidesoftware.code-spell-checker" + ] } }, - "extensions": [ - "dbaeumer.vscode-eslint", - "orta.vscode-jest", - "esbenp.prettier-vscode", - "streetsidesoftware.code-spell-checker" - ], "forwardPorts": [3000], "containerUser": "vscode", "postCreateCommand": "yarn install", "waitFor": "postCreateCommand", // otherwise automated jest tests fail "features": { "node": { - "version": "18" + "version": "22" }, "github-cli": "latest" }