Browse Source

Applies code formatting for consistency

Applies Prettier formatting to the codebase for improved
readability and consistency.

Addresses minor code style inconsistencies across several files.
pull/4854/head
Daniel Gibbs 4 months ago
parent
commit
42d38a576f
Failed to extract signature
  1. 56
      .devcontainer/devcontainer.json
  2. 2
      .prettierrc.json
  3. 20
      .vscode/extensions.json
  4. 50
      package.json

56
.devcontainer/devcontainer.json

@ -1,30 +1,30 @@
{
"name": "BASH Dev Container",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers-community/npm-features/prettier:1": {
"plugins": "prettier-plugin-sh"
},
"ghcr.io/devcontainers-extra/features/actionlint:1": {},
"ghcr.io/devcontainers-extra/features/checkov:1": {},
"ghcr.io/devcontainers-extra/features/markdownlint-cli:1": {},
"ghcr.io/devcontainers-extra/features/shellcheck:1": {},
"ghcr.io/devcontainers-extra/features/yamllint:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"DavidAnson.vscode-markdownlint",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"redhat.vscode-yaml",
"timonwong.shellcheck",
"yzhang.markdown-all-in-one"
]
}
},
"postCreateCommand": "npm init -y >/dev/null 2>&1 || true && npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template"
"name": "BASH Dev Container",
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/devcontainers-community/npm-features/prettier:1": {
"plugins": "prettier-plugin-sh"
},
"ghcr.io/devcontainers-extra/features/actionlint:1": {},
"ghcr.io/devcontainers-extra/features/checkov:1": {},
"ghcr.io/devcontainers-extra/features/markdownlint-cli:1": {},
"ghcr.io/devcontainers-extra/features/shellcheck:1": {},
"ghcr.io/devcontainers-extra/features/yamllint:2": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"DavidAnson.vscode-markdownlint",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"redhat.vscode-yaml",
"timonwong.shellcheck",
"yzhang.markdown-all-in-one"
]
}
},
"postCreateCommand": "npm init -y >/dev/null 2>&1 || true && npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template"
}

2
.prettierrc.json

@ -1,3 +1,3 @@
{
"plugins": ["prettier-plugin-sh"]
"plugins": ["prettier-plugin-sh"]
}

20
.vscode/extensions.json

@ -1,12 +1,12 @@
{
"recommendations": [
"DavidAnson.vscode-markdownlint",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"redhat.vscode-yaml",
"timonwong.shellcheck",
"yzhang.markdown-all-in-one"
]
"recommendations": [
"DavidAnson.vscode-markdownlint",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"redhat.vscode-yaml",
"timonwong.shellcheck",
"yzhang.markdown-all-in-one"
]
}

50
package.json

@ -1,27 +1,27 @@
{
"name": "linuxgsm",
"description": "<h1 align=\"center\"> <br> <a href=\"https://linuxgsm.com\"><img src=\"https://i.imgur.com/Eoh1jsi.jpg\" alt=\"LinuxGSM\"></a> </h1>",
"directories": {
"test": "tests"
},
"devDependencies": {
"prettier": "^3.4.2",
"prettier-plugin-sh": "^0.14.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/GameServerManagers/LinuxGSM.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/GameServerManagers/LinuxGSM/issues"
},
"homepage": "https://github.com/GameServerManagers/LinuxGSM#readme",
"dependencies": {
"gamedig": "^5.1.4"
}
"name": "linuxgsm",
"description": "<h1 align=\"center\"> <br> <a href=\"https://linuxgsm.com\"><img src=\"https://i.imgur.com/Eoh1jsi.jpg\" alt=\"LinuxGSM\"></a> </h1>",
"directories": {
"test": "tests"
},
"devDependencies": {
"prettier": "^3.4.2",
"prettier-plugin-sh": "^0.14.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/GameServerManagers/LinuxGSM.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/GameServerManagers/LinuxGSM/issues"
},
"homepage": "https://github.com/GameServerManagers/LinuxGSM#readme",
"dependencies": {
"gamedig": "^5.1.4"
}
}

Loading…
Cancel
Save