Skip to content

Commit

Permalink
Automatically check new commits with Prettier (#23)
Browse files Browse the repository at this point in the history
* Automatically check new commits with Prettier

* Format all files with Prettier

* Make prettier to run on push too
  • Loading branch information
Nitrrine authored Jul 5, 2024
1 parent dd2b27d commit 4cb8902
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 16 deletions.
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/01-add-an-alternative.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name: Add an alternative to the list
about: Suggest the inclusion of a new mod that can replace an Essential function.
title: "Add [mod] to the alternatives page."
labels: enhancement
assignees:
- KTrain5169
- blryface

assignees:
- KTrain5169
- blryface
---

## What part(s) of Essential does this mod replace?
Expand Down
7 changes: 3 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE/01-add-an-alternative.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ name: Adding new alternative
about: Select this if you are adding a new mod to the alternatives page.
title: "add: [mod name] to alternatives page"
labels: enhancement
assignees:
- KTrain5169
- blryface

assignees:
- KTrain5169
- blryface
---

## What part(s) of Essential does this mod replace?
Expand Down
5 changes: 2 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE/02-site-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ about: Select this if you changed the website in a different way.
title: "change/fix (choose one): [short description of the change]"
labels: enhancement
assignees:
- blryface
- WorldWidePixel

- blryface
- WorldWidePixel
---

## Are there major changes (ex: signficantly revamping the website visuals) that we NEED to know about?
Expand Down
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE/03-chore-stuff.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Select this if you are modifying something that won't affect what other p
title: "chore: [short description of changes go here]"
labels: documentation
assignees: KTrain5169

---

## What have you changed?
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/prettier-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Prettier Check"

on:
push:
pull_request:

jobs:
check-prettier:
name: Prettier Check
runs-on: ubuntu-latest
steps:
- name: Download repo
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Use Node.js v20.15.0
uses: actions/setup-node@v4
with:
node-version: "20.15.0"
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Check code with Prettier
run: pnpm exec prettier --check .
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["esbenp.prettier-vscode"]
}
"recommendations": ["esbenp.prettier-vscode"]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# NotEssential website

A website linking to mods that can substitute Essential's features.
A website linking to mods that can substitute Essential's features.
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ useSeoMeta({
"Essential has many issues. This website tells why, and provides alternatives.",
ogImage: "/img/icon512.png",
})
</script>
</script>

0 comments on commit 4cb8902

Please sign in to comment.