Skip to content

Commit f7637fc

Browse files
Add .editorconfig (devcontainers#476)
* Add .editorconfig * address comment * Update .editorconfig Co-authored-by: eitsupi <50911393+eitsupi@users.noreply.github.com> --------- Co-authored-by: eitsupi <50911393+eitsupi@users.noreply.github.com>
1 parent 35465f7 commit f7637fc

File tree

3 files changed

+30
-14
lines changed

3 files changed

+30
-14
lines changed

.devcontainer/devcontainer.json

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
{
22
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-18",
3+
"features": {
4+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
5+
"ghcr.io/devcontainers/features/azure-cli:1": {}
6+
},
7+
"postCreateCommand": "npm install -g @devcontainers/cli",
38
"customizations": {
49
"vscode": {
510
"extensions": [
611
"mads-hartmann.bash-ide-vscode",
7-
"dbaeumer.vscode-eslint"
12+
"dbaeumer.vscode-eslint",
13+
"EditorConfig.EditorConfig"
814
]
9-
},
10-
"codespaces": {
11-
"repositories": {
12-
"devcontainers/features": {
13-
"permissions": "write-all"
14-
}
15-
}
1615
}
17-
},
18-
"features": {
19-
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
20-
"ghcr.io/devcontainers/features/azure-cli:1": {}
21-
},
22-
"postCreateCommand": "npm install -g @devcontainers/cli"
16+
}
2317
}

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*.json]
4+
indent_style = tab
5+
6+
[Dockerfile]
7+
indent_style = spaces
8+
indent_size = 4
9+
10+
[*.{yml,yaml}]
11+
indent_style = spaces
12+
indent_size = 2

.vscode/extensions.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": [
7+
// We recommend this extension for contributors to assist with the correct styling and formatting of files in this repo.
8+
"EditorConfig.EditorConfig",
9+
],
10+
}

0 commit comments

Comments
 (0)