mirror of
https://github.com/GameServerManagers/LinuxGSM
synced 2026-08-18 20:23:04 -04:00
style: standardize prettier config and 2-space json policy
This commit is contained in:
parent
43c6d88b2c
commit
fe8979140e
8 changed files with 770 additions and 776 deletions
|
|
@ -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 && sudo apt-get update && sudo apt-get install -y ripgrep"
|
||||
"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 && sudo apt-get update && sudo apt-get install -y ripgrep"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ trim_trailing_whitespace = true
|
|||
indent_size = 4
|
||||
indent_style = tab
|
||||
|
||||
# JSON Files (Biome formatting)
|
||||
# JSON Files
|
||||
[*.json]
|
||||
indent_style = tab
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
# Steam appmanifest files (Valve ACF format)
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
# Prettier auto-commit runs with GITHUB_TOKEN (GitHub App).
|
||||
# GitHub blocks that token from creating/updating anything under .github/workflows.
|
||||
.github/workflows/**
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"plugins": ["prettier-plugin-sh"]
|
||||
}
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"plugins": ["prettier-plugin-sh"]
|
||||
"plugins": ["prettier-plugin-sh", "prettier-plugin-jinja-template"]
|
||||
}
|
||||
|
|
|
|||
20
.vscode/extensions.json
vendored
20
.vscode/extensions.json
vendored
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
1408
package-lock.json
generated
1408
package-lock.json
generated
File diff suppressed because it is too large
Load diff
50
package.json
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…
Add table
Add a link
Reference in a new issue