Skip to content

Commit

Permalink
chore: use prettier for code tidy (#3901)
Browse files Browse the repository at this point in the history
* feat: start using prettier linter

https://prettier.io/

* feat: prettier code formatting

* feat: add super linter
  • Loading branch information
dgibbs64 authored Jun 22, 2022
1 parent 1c77179 commit 635f4bc
Show file tree
Hide file tree
Showing 115 changed files with 2,893 additions and 2,663 deletions.
18 changes: 9 additions & 9 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
*.so.6 binary

# Custom for Visual Studio
*.cs diff=csharp
*.cs diff=csharp

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
32 changes: 17 additions & 15 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,37 @@
name: Bug Report
about: Found a bug? Raise a report.
title: "[BUG]"
labels: 'type: bug'
assignees: ''

labels: "type: bug"
assignees: ""
---

Issues raised here are **ONLY** for:
* LinuxGSM bugs.
* Feature suggestions.
* Code contributions.

- LinuxGSM bugs.
- Feature suggestions.
- Code contributions.

Issues raised here are **NOT** for:
* General support.
* Specific game server issues (e.g CS:GO, TF2).
* Dedicated server issues (e.g Ubuntu, CentOS).
* Anything not directly related to LinuxGSM development.

- General support.
- Specific game server issues (e.g CS:GO, TF2).
- Dedicated server issues (e.g Ubuntu, CentOS).
- Anything not directly related to LinuxGSM development.

For general support visit the **[LinuxGSM-Support](https://linuxgsm.com/support)**.

***Please use the template below, deleting the above text***
**_Please use the template below, deleting the above text_**

## User Story

As a [user description], I want [desired action] so that [desired outcome].

## Basic info

* **Distro:** [Ubuntu 18.04]
* **Game:** [Garry's Mod]
* **Command:** [Monitor]
* **LinuxGSM version:** [v20.1.3]
- **Distro:** [Ubuntu 18.04]
- **Game:** [Garry's Mod]
- **Command:** [Monitor]
- **LinuxGSM version:** [v20.1.3]

## Further Information

Expand All @@ -40,6 +41,7 @@ A clear description of what the bug is and any ideas on how to resolve it. Plus
## To Reproduce

Steps to reproduce the behaviour:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand Down
31 changes: 16 additions & 15 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,37 @@
name: Feature Request
about: Suggest an idea for LinuxGSM.
title: "[FEATURE]"
labels: 'type: feature request'
assignees: ''

labels: "type: feature request"
assignees: ""
---

Issues raised here are **ONLY** for:
* LinuxGSM bugs.
* Feature suggestions.
* Code contributions.

- LinuxGSM bugs.
- Feature suggestions.
- Code contributions.

Issues raised here are **NOT** for:
* General support.
* Specific game server issues (e.g CS:GO, TF2).
* Dedicated server issues (e.g Ubuntu, CentOS).
* Anything not directly related to LinuxGSM development.

- General support.
- Specific game server issues (e.g CS:GO, TF2).
- Dedicated server issues (e.g Ubuntu, CentOS).
- Anything not directly related to LinuxGSM development.

For general support visit the **[LinuxGSM Support](https://linuxgsm.com/support)** page.

***Please use the template below, deleting the above text***
**_Please use the template below, deleting the above text_**

## User Story

As a [user description], I want [desired action] so that [desired outcome].

## Basic info

* **Distro:** [Ubuntu 20.04]
* **Game:** [Garry's Mod]
* **Command:** [Monitor]
* **LinuxGSM version:** [v20.1.3]
- **Distro:** [Ubuntu 20.04]
- **Game:** [Garry's Mod]
- **Command:** [Monitor]
- **LinuxGSM version:** [v20.1.3]

## Further Information

Expand Down
13 changes: 6 additions & 7 deletions .github/ISSUE_TEMPLATE/new-server-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
name: New Server Request
about: Suggest a new game server to be added.
title: "[Server Request]"
labels: 'type: game server request'
assignees: ''

labels: "type: game server request"
assignees: ""
---

## What game server would you like to add?
Expand All @@ -17,8 +16,8 @@ Provide any useful documentation or resources that might help.

## Is the server on Steam?

* [ ] Yes
* [ ] No
- [ ] Yes
- [ ] No

If yes Use SteamDB to get the appid. (https://steamdb.info).

Expand All @@ -28,5 +27,5 @@ If yes Use SteamDB to get the appid. (https://steamdb.info).

We only support Linux servers and do **not** support Wine.

* [ ] Yes
* [ ] No
- [ ] Yes
- [ ] No
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Set update schedule for GitHub Actions
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
92 changes: 46 additions & 46 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,98 +1,98 @@
# Add/remove 'critical' label if issue contains the words 'urgent' or 'critical'
# Type
"type: game server request":
- '/(Server Request)/i'
- "/(Server Request)/i"
"type: bug":
- '/(bug)/i'
- "/(bug)/i"
"type: feature request":
- '/(feature)/i'
- "/(feature)/i"
# Commands
"command: backup":
- '/(backup)/i'
- "/(backup)/i"
"command: console":
- '/(console|tmux)/i'
- "/(console|tmux)/i"
"command: debug":
- '/(debug)/i'
- "/(debug)/i"
"command: details":
- '/(details)/i'
- "/(details)/i"
"command: fast-dl":
- '/(fast-dl|fastdl)/i'
- "/(fast-dl|fastdl)/i"
"command: install":
- '/(install)/i'
- "/(install)/i"
"command: mods":
- '/(mods)/i'
- "/(mods)/i"
"command: monitor":
- '/(monitor)/i'
- "/(monitor)/i"
"command: post-details":
- '/(post-details)/i'
- "/(post-details)/i"
"command: restart":
- '/(restart)/i'
- "/(restart)/i"
"command: send":
- '/(send)/i'
- "/(send)/i"
"command: skeleton":
- '/(skeleton)/i'
- "/(skeleton)/i"
"command: start":
- '/(start)/i'
- "/(start)/i"
"command: stop":
- '/(stop)/i'
- "/(stop)/i"
"command: update-lgsm":
- '/(update-lgsm)/i'
- "/(update-lgsm)/i"
"command: update":
- '/(update)/i'
- "/(update)/i"
"command: validate":
- '/(validate)/i'
- "/(validate)/i"
"command: wipe":
- '/(wipe)/i'
- "/(wipe)/i"
# Distros
"distro: AlmaLinux":
- '/(Alma)/i'
- "/(Alma)/i"
"distro: Arch Linux":
- '/(Arch)/i'
- "/(Arch)/i"
"distro: CentOS":
- '/(CentOS)/i'
- "/(CentOS)/i"
"distro: Debian":
- '/(Debian)/i'
- "/(Debian)/i"
"distro: Fedora":
- '/(Fedora)/i'
- "/(Fedora)/i"
"distro: openSUSE":
- '/(openSUSE|suse)/i'
- "/(openSUSE|suse)/i"
"distro: Rocky Linux":
- '/(Rocky)/i'
- "/(Rocky)/i"
"distro: Slackware":
- '/(Slackware)/i'
- "/(Slackware)/i"
"distro: Ubuntu":
- '/(Ubuntu)/i'
- "/(Ubuntu)/i"
# Info
"info: alerts":
- '/(alert)/i'
- "/(alert)/i"
"info: dependency":
- '/(dependency|deps)/i'
- "/(dependency|deps)/i"
"info: docker":
- '/(docker)/i'
- "/(docker)/i"
"info: docs":
- '/(documentation|docs)/i'
- "/(documentation|docs)/i"
"info: email":
- '/(postfix|sendmail|exim|smtp)/i'
- "/(postfix|sendmail|exim|smtp)/i"
"info: query":
- '/(gamedig|gsquery)/i'
- "/(gamedig|gsquery)/i"
"info: steamcmd":
- '/(steamcmd)/i'
- "/(steamcmd)/i"
"info: systemd":
- '/(systemd)/i'
- "/(systemd)/i"
"info: tmux":
- '/(tmux)/i'
- "/(tmux)/i"
"info: website":
- '/(website)/i'
- "/(website)/i"
# Games
"game: Ark: Survival Evolved":
- '/(Ark: Survival Evolved|Ark)/i'
- "/(Ark: Survival Evolved|Ark)/i"
"game: ARMA 3":
- '/(ARMA 3)/i'
- "/(ARMA 3)/i"
"game: Assetto Corsa":
- '/(Assetto Corsa)/i'
- "/(Assetto Corsa)/i"
"game: Avorion":
- '/(Avorion)/i'
- "/(Avorion)/i"
"game: Ballistic Overkill":
- '/(Ballistic Overkill)/i'
- "/(Ballistic Overkill)/i"
"game: Barotrauma":
- '/(Barotrauma)/i'
- "/(Barotrauma)/i"
31 changes: 16 additions & 15 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,30 @@ Fixes #[issue]

## Type of change

* [ ] Bug fix (a change which fixes an issue).
* [ ] New feature (change which adds functionality).
* [ ] New Server (new server added).
* [ ] Refactor (restructures existing code).
* [ ] Comment update (typo, spelling, explanation, examples, etc).
- [ ] Bug fix (a change which fixes an issue).
- [ ] New feature (change which adds functionality).
- [ ] New Server (new server added).
- [ ] Refactor (restructures existing code).
- [ ] Comment update (typo, spelling, explanation, examples, etc).

## Checklist

PR will not be merged until all steps are complete.

* [ ] This pull request links to an issue.
* [ ] This pull request uses the `develop` branch as its base.
* [ ] This pull request Subject follows the Conventional Commits standard.
* [ ] This code follows the style guidelines of this project.
* [ ] I have performed a self-review of my code.
* [ ] I have checked that this code is commented where required.
* [ ] I have provided a detailed with enough description of this PR.
* [ ] I have checked If documentation needs updating.
- [ ] This pull request links to an issue.
- [ ] This pull request uses the `develop` branch as its base.
- [ ] This pull request Subject follows the Conventional Commits standard.
- [ ] This code follows the style guidelines of this project.
- [ ] I have performed a self-review of my code.
- [ ] I have checked that this code is commented where required.
- [ ] I have provided a detailed with enough description of this PR.
- [ ] I have checked If documentation needs updating.

## Documentation

If documentation does need updating either update it by creating a PR (preferred) or request a documentation update.
* User docs: https://github.com/GameServerManagers/LinuxGSM-Docs
* Dev docs: https://github.com/GameServerManagers/LinuxGSM-Dev-Docs

- User docs: https://github.com/GameServerManagers/LinuxGSM-Docs
- Dev docs: https://github.com/GameServerManagers/LinuxGSM-Dev-Docs

**Thank you for your Pull Request!**
4 changes: 2 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ permissions:
jobs:
update_release_draft:
permissions:
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PR
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PR
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
Expand Down
Loading

0 comments on commit 635f4bc

Please sign in to comment.