Skip to content

Commit 1ad7d4f

Browse files
committed
refactor: Run prettier
1 parent 044b4a3 commit 1ad7d4f

35 files changed

Lines changed: 635 additions & 635 deletions

File tree

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
name: Report an issue
2-
description: Create a report to help us improve
3-
labels: ["bug"]
4-
body:
5-
- type: input
6-
attributes:
7-
label: Plugin version
8-
description: What version of `payload-authjs` are you using?
9-
placeholder: 1.0.0
10-
validations:
11-
required: true
12-
- type: input
13-
attributes:
14-
label: Payload version
15-
description: What version of `payload` are you using?
16-
placeholder: 3.0.0
17-
validations:
18-
required: true
19-
- type: input
20-
attributes:
21-
label: Auth.js version
22-
description: What version of `Auth.js`/`next-auth` are you using?
23-
placeholder: 5.0.0-beta.25
24-
validations:
25-
required: true
26-
- type: textarea
27-
attributes:
28-
label: Describe the bug
29-
description: A clear and concise description of what the bug is.
30-
placeholder: A clear and concise description of what the bug is
31-
validations:
32-
required: true
33-
- type: textarea
34-
attributes:
35-
label: To Reproduce
36-
description: Steps to reproduce the behavior.
37-
placeholder: |
38-
1. Go to '...'
39-
2. Click on '....'
40-
3. Scroll down to '....'
41-
4. See error
42-
validations:
43-
required: true
44-
- type: textarea
45-
attributes:
46-
label: Additional context / Screenshots
47-
description: Add any other context about the problem here. If applicable, add screenshots to help explain your problem.
48-
placeholder: Add other context here (e.g. screenshots, logs, etc.)
49-
validations:
50-
required: false
1+
name: Report an issue
2+
description: Create a report to help us improve
3+
labels: ["bug"]
4+
body:
5+
- type: input
6+
attributes:
7+
label: Plugin version
8+
description: What version of `payload-authjs` are you using?
9+
placeholder: 1.0.0
10+
validations:
11+
required: true
12+
- type: input
13+
attributes:
14+
label: Payload version
15+
description: What version of `payload` are you using?
16+
placeholder: 3.0.0
17+
validations:
18+
required: true
19+
- type: input
20+
attributes:
21+
label: Auth.js version
22+
description: What version of `Auth.js`/`next-auth` are you using?
23+
placeholder: 5.0.0-beta.25
24+
validations:
25+
required: true
26+
- type: textarea
27+
attributes:
28+
label: Describe the bug
29+
description: A clear and concise description of what the bug is.
30+
placeholder: A clear and concise description of what the bug is
31+
validations:
32+
required: true
33+
- type: textarea
34+
attributes:
35+
label: To Reproduce
36+
description: Steps to reproduce the behavior.
37+
placeholder: |
38+
1. Go to '...'
39+
2. Click on '....'
40+
3. Scroll down to '....'
41+
4. See error
42+
validations:
43+
required: true
44+
- type: textarea
45+
attributes:
46+
label: Additional context / Screenshots
47+
description: Add any other context about the problem here. If applicable, add screenshots to help explain your problem.
48+
placeholder: Add other context here (e.g. screenshots, logs, etc.)
49+
validations:
50+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
blank_issues_enabled: false
2-
contact_links:
3-
- name: Feature request / Ideas
4-
url: https://github.com/CrawlerCode/payload-authjs/discussions/new?category=feature-request-ideas
5-
about: Share ideas for new features
6-
- name: Ask a question
7-
url: https://github.com/CrawlerCode/payload-authjs/discussions/new?category=q-a
8-
about: Ask questions
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Feature request / Ideas
4+
url: https://github.com/CrawlerCode/payload-authjs/discussions/new?category=feature-request-ideas
5+
about: Share ideas for new features
6+
- name: Ask a question
7+
url: https://github.com/CrawlerCode/payload-authjs/discussions/new?category=q-a
8+
about: Ask questions

.prettierignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/.nx/cache
2-
/.nx/workspace-data
1+
/**/src/app/(payload)
2+
/**/payload-types.ts

examples/basic/project.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
{
2-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
3-
"sourceRoot": "examples/basic/src",
4-
"projectType": "application",
5-
"targets": {
6-
"dev": {
7-
"dependsOn": ["^build"]
8-
},
9-
"dev:turbo": {
10-
"dependsOn": ["^build"]
11-
}
12-
}
13-
}
1+
{
2+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
3+
"sourceRoot": "examples/basic/src",
4+
"projectType": "application",
5+
"targets": {
6+
"dev": {
7+
"dependsOn": ["^build"]
8+
},
9+
"dev:turbo": {
10+
"dependsOn": ["^build"]
11+
}
12+
}
13+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { handlers } from "@/auth";
2-
3-
export const { GET, POST } = handlers;
1+
import { handlers } from "@/auth";
2+
3+
export const { GET, POST } = handlers;

examples/basic/src/auth.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { NextAuthConfig } from "next-auth";
2-
import github from "next-auth/providers/github";
3-
4-
export const authConfig: NextAuthConfig = {
5-
providers: [github],
6-
callbacks: {
7-
authorized: ({ auth }) => !!auth,
8-
},
9-
};
1+
import { NextAuthConfig } from "next-auth";
2+
import github from "next-auth/providers/github";
3+
4+
export const authConfig: NextAuthConfig = {
5+
providers: [github],
6+
callbacks: {
7+
authorized: ({ auth }) => !!auth,
8+
},
9+
};

examples/basic/src/auth.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import payloadConfig from "@payload-config";
2-
import NextAuth from "next-auth";
3-
import { withPayload } from "payload-authjs";
4-
import { authConfig } from "./auth.config";
5-
6-
export const { handlers, signIn, signOut, auth } = NextAuth(
7-
withPayload(authConfig, {
8-
payloadConfig,
9-
}),
10-
);
1+
import payloadConfig from "@payload-config";
2+
import NextAuth from "next-auth";
3+
import { withPayload } from "payload-authjs";
4+
import { authConfig } from "./auth.config";
5+
6+
export const { handlers, signIn, signOut, auth } = NextAuth(
7+
withPayload(authConfig, {
8+
payloadConfig,
9+
}),
10+
);

examples/basic/src/middleware.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import NextAuth from "next-auth";
2-
import { authConfig } from "./auth.config";
3-
4-
export const { auth: middleware } = NextAuth(authConfig);
5-
6-
export const config = {
7-
matcher: ["/((?!api|_next/static|_next/image|favicon.ico|admin/login).*)"],
8-
};
1+
import NextAuth from "next-auth";
2+
import { authConfig } from "./auth.config";
3+
4+
export const { auth: middleware } = NextAuth(authConfig);
5+
6+
export const config = {
7+
matcher: ["/((?!api|_next/static|_next/image|favicon.ico|admin/login).*)"],
8+
};
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
{
2-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
3-
"sourceRoot": "examples/multiple-auth-collections/src",
4-
"projectType": "application",
5-
"targets": {
6-
"dev": {
7-
"dependsOn": ["^build"]
8-
}
9-
}
10-
}
1+
{
2+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
3+
"sourceRoot": "examples/multiple-auth-collections/src",
4+
"projectType": "application",
5+
"targets": {
6+
"dev": {
7+
"dependsOn": ["^build"]
8+
}
9+
}
10+
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { handlers } from "@/auth.admins";
2-
3-
export const { GET, POST } = handlers;
1+
import { handlers } from "@/auth.admins";
2+
3+
export const { GET, POST } = handlers;

0 commit comments

Comments
 (0)