Skip to content

Commit 54616f6

Browse files
committed
chore: apply prettier formatting
1 parent 1ac1258 commit 54616f6

File tree

20 files changed

+88
-82
lines changed

20 files changed

+88
-82
lines changed

.github/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exemptLabels:
77
- pinned
88
- security
99
# Label to use when marking an issue as stale
10-
staleLabel:
10+
staleLabel:
1111
# Comment to post when marking an issue as stale. Set to `false` to disable
1212
markComment: >
1313
This issue has been automatically marked as stale because it has not had

.github/workflows/lock-issue.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: 'Lock Issues'
1+
name: "Lock Issues"
22

33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '0 0,6,12,18 * * *'
6+
- cron: "0 0,6,12,18 * * *"
77

88
permissions:
99
issues: write

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

.prettierrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
23
"endOfLine": "lf",
34
"semi": false,
45
"singleQuote": false,

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ React Hook Form uses prettier.
5656
If possible, enable the prettier plugin in your editor to get real-time feedback. The formatting can be run manually with the following command:
5757

5858
```shellscript
59-
pnpm run format
59+
pnpm run format:fix
6060
```
6161

6262
## License

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"eslint-plugin-react-hooks": "^4.6.0",
4747
"husky": "^8.0.3",
4848
"lint-staged": "^13.2.2",
49-
"prettier": "^2.8.8",
49+
"prettier": "^3.4.2",
5050
"typescript": "^5.1.3"
5151
},
5252
"keywords": [
@@ -58,7 +58,8 @@
5858
"analyze": "cross-env ANALYZE=true next build",
5959
"build": "next build",
6060
"dev": "next dev",
61-
"format": "prettier --write",
61+
"format": "prettier . --check",
62+
"format:fix": "prettier . --write",
6263
"lint": "next lint --fix",
6364
"now-build": "pnpm run build",
6465
"start": "next start",
@@ -67,7 +68,7 @@
6768
},
6869
"lint-staged": {
6970
"*.{ts,tsx,mdx,css,json}": [
70-
"pnpm run format"
71+
"pnpm run format:fix"
7172
]
7273
}
7374
}

src/components/Watcher.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,20 @@ const Watcher = ({ isPlayWatch }: { isPlayWatch: boolean }) => {
7070
i === 13
7171
? "W"
7272
: i === 14
73-
? "Wa"
74-
: i === 15
75-
? "Wat"
76-
: i === 16
77-
? "Watc"
78-
: i === 17
79-
? "Watch"
80-
: i === 18
81-
? "Watchi"
82-
: i === 19
83-
? "Watchin"
84-
: i === 20
85-
? "Watching"
86-
: "Watching."
73+
? "Wa"
74+
: i === 15
75+
? "Wat"
76+
: i === 16
77+
? "Watc"
78+
: i === 17
79+
? "Watch"
80+
: i === 18
81+
? "Watchi"
82+
: i === 19
83+
? "Watchin"
84+
: i === 20
85+
? "Watching"
86+
: "Watching."
8787
)
8888
}
8989

src/components/layout.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -523,11 +523,17 @@ a.skip-main:active {
523523
width: 1px;
524524
height: 1px;
525525
border: 1px solid transparent;
526-
box-shadow: -2px 0 0 -1px currentColor, 2px 0 0 -1px currentColor,
527-
0 -2px 0 -1px currentColor, 0 2px 0 -1px currentColor,
528-
-6px 0 0 -1px currentColor, 6px 0 0 -1px currentColor,
529-
-4px -2px 0 -1px currentColor, -4px 2px 0 -1px currentColor,
530-
4px -2px 0 -1px currentColor, 4px 2px 0 -1px currentColor;
526+
box-shadow:
527+
-2px 0 0 -1px currentColor,
528+
2px 0 0 -1px currentColor,
529+
0 -2px 0 -1px currentColor,
530+
0 2px 0 -1px currentColor,
531+
-6px 0 0 -1px currentColor,
532+
6px 0 0 -1px currentColor,
533+
-4px -2px 0 -1px currentColor,
534+
-4px 2px 0 -1px currentColor,
535+
4px -2px 0 -1px currentColor,
536+
4px 2px 0 -1px currentColor;
531537
}
532538

533539
.keyboard.icon:after {

src/components/sponsorsList.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function SponsorsList() {
1111
target="_blank"
1212
rel="noopener noreferrer"
1313
>
14-
<img src="/images/casinoreviews.png" alt="Casino Reviews"/>
14+
<img src="/images/casinoreviews.png" alt="Casino Reviews" />
1515
</a>
1616
<a
1717
href="https://www.beekai.com/"
@@ -28,16 +28,9 @@ export function SponsorsList() {
2828
target="_blank"
2929
rel="noopener noreferrer"
3030
>
31-
<img
32-
src="/images/route4me.png"
33-
alt="route4me"
34-
/>
31+
<img src="/images/route4me.png" alt="route4me" />
3532
</a>
36-
<a
37-
href="https://twicsy.com/"
38-
target="_blank"
39-
rel="noopener noreferrer"
40-
>
33+
<a href="https://twicsy.com/" target="_blank" rel="noopener noreferrer">
4134
<img
4235
className={styles.twicsy}
4336
src="/images/twicsy.png"

src/content/docs/formprovider.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ export default function App() {
3535
const methods = useForm()
3636

3737
const onSubmit = (data) => console.log(data)
38-
const { register, reset } = methods;
38+
const { register, reset } = methods
3939

4040
useEffect(() => {
4141
reset({
42-
name: 'data'
42+
name: "data",
4343
})
44-
}, [reset]); // ❌ never put `methods` as the deps
44+
}, [reset]) // ❌ never put `methods` as the deps
4545

4646
return (
4747
<FormProvider {...methods}>
4848
// pass all methods into the context
4949
<form onSubmit={methods.handleSubmit(onSubmit)}>
5050
<NestedInput />
51-
<input {...register('name')} />
51+
<input {...register("name")} />
5252
<input type="submit" />
5353
</form>
5454
</FormProvider>

0 commit comments

Comments
 (0)