From 2dd435e2b5c2a982f4fb3d98e138a3869e4229a1 Mon Sep 17 00:00:00 2001 From: Sachin Raja Date: Tue, 5 Oct 2021 08:41:55 -0700 Subject: [PATCH] add prettier and husky pre-commit hook and run on all files (#448) --- .github/ISSUE_TEMPLATE/bug_report.md | 8 +- .github/ISSUE_TEMPLATE/feature_request.md | 8 +- .github/PULL_REQUEST_TEMPLATE.md | 2 - .husky/.gitignore | 1 + .husky/pre-commit | 4 + README.md | 7 +- app.json | 74 +- botconfig.js | 11 +- commands/bassboost.js | 182 +- commands/bump.js | 142 +- commands/clear.js | 57 +- commands/config.js | 60 +- commands/disconnect.js | 19 +- commands/grab.js | 216 ++- commands/help.js | 81 +- commands/invite.js | 49 +- commands/loop.js | 138 +- commands/loopqueue.js | 138 +- commands/lyrics.js | 46 +- commands/move.js | 186 +- commands/pause.js | 116 +- commands/play.js | 691 ++++--- commands/queue.js | 5 +- commands/remove.js | 120 +- commands/resume.js | 112 +- commands/search.js | 72 +- commands/seek.js | 78 +- commands/shuffle.js | 110 +- commands/skip.js | 110 +- commands/skipto.js | 78 +- commands/stats.js | 264 +-- commands/volume.js | 159 +- commands/youtube.js | 115 +- events/ready.js | 21 +- events/voiceStateUpdate.js | 121 +- package-lock.json | 2158 +++++++++++++++++++++ package.json | 11 +- renovate.json | 4 +- structures/DiscordMusicBot.js | 12 +- structures/EpicPlayer.js | 3 +- views/dashboard.html | 247 ++- views/index.html | 301 ++- views/server.html | 239 ++- views/servers.html | 230 ++- 44 files changed, 5093 insertions(+), 1713 deletions(-) create mode 100644 .husky/.gitignore create mode 100755 .husky/pre-commit create mode 100644 package-lock.json diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index d92607ee3..8efd06d04 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,11 +1,11 @@ --- - name: Bug report about: Report incorrect or unexpected behavior of the Music Bot -title: '' -labels: 's: unverified, type: bug' -assignees: '' +title: "" +labels: "s: unverified, type: bug" +assignees: "" --- + **Please describe the problem you are having in as much detail as possible:** diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 551ed2287..12d720762 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,11 +1,11 @@ --- - name: Feature request about: Request a feature for the Music Bot -title: '' -labels: 'type: enhancement' -assignees: '' +title: "" +labels: "type: enhancement" +assignees: "" --- + **Is your feature request related to a problem? Please describe.** diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d27a5203a..f64aa2388 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,7 +1,5 @@ **Please describe the changes this PR makes and why it should be merged:** - - **Status and versioning classification:** -
- -