Skip to content

Commit cfb7fc6

Browse files
committed
feat: new repo files
1 parent 3c99f5c commit cfb7fc6

File tree

90 files changed

+24084
-380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+24084
-380
lines changed

.devcontainer.json

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
{
2-
"name": "go-template dev container",
3-
"image": "mcr.microsoft.com/devcontainers/go:0-1.24-bullseye",
4-
"features": {
5-
"ghcr.io/devcontainers/features/github-cli:1": {},
6-
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
7-
},
8-
"mounts": [
9-
"type=cache,target=/home/vscode/.cache/go-build",
10-
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
11-
],
12-
"runArgs": [
13-
"--cap-drop=ALL",
14-
"--security-opt",
15-
"no-new-privileges:true"
16-
],
17-
"postCreateCommand": "make lint && go vet ./... && go test ./...",
18-
"customizations": {
19-
"vscode": {
20-
"settings": {
21-
"go.useLanguageServer": true,
22-
"go.lintTool": "golangci-lint",
23-
"go.toolsEnvVars": {
24-
"GOFLAGS": "-buildvcs=false"
25-
},
26-
"editor.formatOnSave": true,
27-
"editor.codeActionsOnSave": {
28-
"source.organizeImports": true
29-
}
30-
},
31-
"extensions": [
32-
"golang.Go",
33-
"github.vscode-github-actions",
34-
"eamodio.gitlens"
35-
]
36-
}
37-
},
38-
"remoteUser": "vscode"
2+
"customizations": {
3+
"vscode": {
4+
"extensions": [
5+
"golang.Go",
6+
"github.vscode-github-actions",
7+
"eamodio.gitlens"
8+
],
9+
"settings": {
10+
"editor.codeActionsOnSave": {
11+
"source.organizeImports": true
12+
},
13+
"editor.formatOnSave": true,
14+
"go.lintTool": "golangci-lint",
15+
"go.toolsEnvVars": {
16+
"GOFLAGS": "-buildvcs=false"
17+
},
18+
"go.useLanguageServer": true
19+
}
20+
}
21+
},
22+
"features": {
23+
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
24+
"ghcr.io/devcontainers/features/github-cli:1": {}
25+
},
26+
"image": "mcr.microsoft.com/devcontainers/go:0-1.24-bullseye",
27+
"mounts": [
28+
"type=cache,target=/home/vscode/.cache/go-build",
29+
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
30+
],
31+
"name": "go-template dev container",
32+
"postCreateCommand": "make lint && go vet ./... && go test ./...",
33+
"remoteUser": "vscode",
34+
"runArgs": [
35+
"--cap-drop=ALL",
36+
"--security-opt",
37+
"no-new-privileges:true"
38+
]
3939
}

.editorconfig

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,26 @@ trim_trailing_whitespace = false
1414

1515
[*.{yml,yaml}]
1616
indent_style = space
17-
indent_size = 2 # or 4-spaces if you prefer
17+
indent_size = 2
18+
19+
[*.{json,prettierrc}]
20+
indent_style = space
21+
indent_size = 4
22+
23+
[*.{js,mjs,cjs,ts}]
24+
indent_style = space
25+
indent_size = 4
26+
27+
[*.py]
28+
indent_style = space
29+
indent_size = 4
30+
31+
[{Makefile,*.mk}]
32+
indent_style = tab
33+
34+
[*.{xml,cff}]
35+
indent_style = space
36+
indent_size = 2
37+
38+
[{LICENSE,Dockerfile,.gitignore,.dockerignore,.prettierignore}]
39+
insert_final_newline = true

0 commit comments

Comments
 (0)