Skip to content

Commit

Permalink
Add Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Jul 11, 2024
1 parent e366105 commit e18ecce
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Prettier

on:
push:
branches:
- main
- dev
tags:
- "**"
pull_request:
branches:
- "**"

jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4

- name: Install dependencies
run: npm install

- name: Run Prettier
run: npm run prettier
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
/node_modules
28 changes: 28 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"private": true,
"scripts": {
"prettier": "prettier --check .",
"fmt": "prettier --write ."
},
"devDependencies": {
"prettier": "^3.3.2"
}
}

0 comments on commit e18ecce

Please sign in to comment.