Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: apply prettier formatting #1101

Merged
merged 2 commits into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exemptLabels:
- pinned
- security
# Label to use when marking an issue as stale
staleLabel:
staleLabel:
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches:
- "master"
pull_request:
branches:
- "master"

env:
HUSKY: 0

jobs:
ci:
name: CI
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Install Dependencies
shell: bash
run: pnpm install --frozen-lockfile

- name: Format
run: |
pnpm run format
4 changes: 2 additions & 2 deletions .github/workflows/lock-issue.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: 'Lock Issues'
name: "Lock Issues"

on:
workflow_dispatch:
schedule:
- cron: '0 0,6,12,18 * * *'
- cron: "0 0,6,12,18 * * *"

permissions:
issues: write
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.18.1
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"endOfLine": "lf",
"semi": false,
"singleQuote": false,
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ React Hook Form uses prettier.
If possible, enable the prettier plugin in your editor to get real-time feedback. The formatting can be run manually with the following command:

```shellscript
pnpm run format
pnpm run format:fix
```

## License
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"prettier": "^3.4.2",
"typescript": "^5.1.3"
},
"keywords": [
Expand All @@ -58,7 +58,8 @@
"analyze": "cross-env ANALYZE=true next build",
"build": "next build",
"dev": "next dev",
"format": "prettier --write",
"format": "prettier . --check",
"format:fix": "prettier . --write",
"lint": "next lint --fix",
"now-build": "pnpm run build",
"start": "next start",
Expand All @@ -67,7 +68,8 @@
},
"lint-staged": {
"*.{ts,tsx,mdx,css,json}": [
"pnpm run format"
"pnpm run format:fix"
]
}
},
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
}
Loading
Loading