Skip to content

Commit 790c7ea

Browse files
fflatenhippotastic
andauthored
Add devcontainer and editorconfig (#27)
* Add devcontainer * Add editorconfig for consistent code style * Apply suggestions from code review Co-authored-by: Hippo <6137925+hippotastic@users.noreply.github.com> --------- Co-authored-by: Hippo <6137925+hippotastic@users.noreply.github.com>
1 parent b3f92af commit 790c7ea

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM mcr.microsoft.com/devcontainers/typescript-node:1-18-bullseye
2+
3+
# Install latest pnpm
4+
RUN npm install -g pnpm

.devcontainer/devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "Expressive Code",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"postCreateCommand": "pnpm install && pnpm run build",
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"astro-build.astro-vscode",
11+
"dbaeumer.vscode-eslint",
12+
"EditorConfig.EditorConfig",
13+
"github.vscode-github-actions",
14+
"yzhang.markdown-all-in-one"
15+
]
16+
}
17+
}
18+
}

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_style = tab
9+
insert_final_newline = true
10+
trim_trailing_whitespace = false
11+
12+
[{.*,*.md,*.mdx,*.json,*.toml,*.yaml,*.yml,}]
13+
indent_size = 2
14+
indent_style = space

0 commit comments

Comments
 (0)