mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 23:32:10 -05:00
170cabf92b
- Update devcontainer by setting Prettier as a formatter only for supported languages. - Install only the VS Code extensions that we need for Super-linter development. - Remove the devcontainer as soon as it's not needed to avoid leaving leftovers behind. - Enable proseWrap in Prettier configuration. - Update documentation about how to configure new linters. - Fix linting issues.
109 lines
3.2 KiB
JSON
109 lines
3.2 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
|
|
"name": "Super-Linter",
|
|
"image": "ghcr.io/super-linter/super-linter:latest",
|
|
"customizations": {
|
|
"vscode": {
|
|
"settings": {
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnSaveMode": "file",
|
|
"editor.wordWrap": "off",
|
|
"hadolint.cliOptions": [
|
|
"--config",
|
|
"/workspaces/super-linter/.github/linters/.hadolint.yaml"
|
|
],
|
|
"markdownlint.config": {
|
|
"extends": "${workspaceFolder}/.github/linters/.markdown-lint.yml"
|
|
},
|
|
"prettier.resolveGlobalModules": true,
|
|
"redhat.telemetry.enabled": false,
|
|
"telemetry.telemetryLevel": "off",
|
|
"[javascript]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[json]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[jsonc]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[markdown]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.wordWrap": "off"
|
|
},
|
|
"[shellscript]": {
|
|
"editor.defaultFormatter": "mkhl.shfmt"
|
|
},
|
|
"[yaml]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
}
|
|
},
|
|
"extensions": [
|
|
"DavidAnson.vscode-markdownlint",
|
|
"EditorConfig.EditorConfig",
|
|
"esbenp.prettier-vscode",
|
|
"exiasr.hadolint",
|
|
"GitHub.vscode-github-actions",
|
|
"GitHub.vscode-pull-request-github",
|
|
"mads-hartmann.bash-ide-vscode",
|
|
"mkhl.shfmt",
|
|
"ms-azuretools.vscode-docker",
|
|
"ms-vscode.makefile-tools",
|
|
"timonwong.shellcheck"
|
|
]
|
|
}
|
|
},
|
|
"mounts": [
|
|
{
|
|
"source": "${localWorkspaceFolder}/TEMPLATES",
|
|
"target": "/action/lib/.automation",
|
|
"type": "bind"
|
|
},
|
|
{
|
|
"source": "${localWorkspaceFolder}/lib",
|
|
"target": "/action/lib",
|
|
"type": "bind"
|
|
},
|
|
{
|
|
"source": "${localWorkspaceFolder}/dependencies/Gemfile",
|
|
"target": "/Gemfile",
|
|
"type": "bind"
|
|
},
|
|
{
|
|
"source": "${localWorkspaceFolder}/dependencies/Gemfile.lock",
|
|
"target": "/Gemfile.lock",
|
|
"type": "bind"
|
|
},
|
|
{
|
|
"source": "${localWorkspaceFolder}/dependencies/package.json",
|
|
"target": "/package.json",
|
|
"type": "bind"
|
|
},
|
|
{
|
|
"source": "${localWorkspaceFolder}/dependencies/package-lock.json",
|
|
"target": "/package-lock.json",
|
|
"type": "bind"
|
|
},
|
|
{
|
|
"source": "${localWorkspaceFolder}/dependencies/composer/composer.json",
|
|
"target": "/php-composer/composer.json",
|
|
"type": "bind"
|
|
},
|
|
{
|
|
"source": "${localWorkspaceFolder}/dependencies/composer/composer.lock",
|
|
"target": "/php-composer/composer.lock",
|
|
"type": "bind"
|
|
},
|
|
{
|
|
"source": "${localWorkspaceFolder}/scripts/bash-exec.sh",
|
|
"target": "/usr/bin/bash-exec",
|
|
"type": "bind"
|
|
},
|
|
{
|
|
"source": "${localWorkspaceFolder}/scripts/git-merge-conflict-markers.sh",
|
|
"target": "/usr/bin/git-merge-conflict-markers",
|
|
"type": "bind"
|
|
}
|
|
],
|
|
"runArgs": ["--env-file", ".devcontainer/devcontainer.env", "--rm"]
|
|
}
|