Skip to content

Commit

Permalink
chore: Re-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed Mar 15, 2024
1 parent d5a57fb commit eb94c4f
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 26 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: Bug report
about: Create a report to help us improve
title: ''
Expand Down
2 changes: 1 addition & 1 deletion project-fixtures/gql-errors-prj/graphql-tag.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module "graphql-tag" {
declare module 'graphql-tag' {
const gql: any;
export default gql;
}
4 changes: 2 additions & 2 deletions project-fixtures/gql-errors-prj/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const tooComplexExpressionQuery = gql`
query {
${getField()}
}
`
`;
const semanticErrorFragment = gql`
fragment MyFragment on Query {
fragment MyFragment on Query {
hoge
}
`;
Expand Down
2 changes: 1 addition & 1 deletion project-fixtures/no-config-prj/graphql-tag.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module "graphql-tag" {
declare module 'graphql-tag' {
const gql: any;
export default gql;
}
12 changes: 6 additions & 6 deletions project-fixtures/react-apollo-prj/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -10180,7 +10180,7 @@ type IssueTimelineConnection {
An item in an issue timeline
"""
union IssueTimelineItem =
AssignedEvent
| AssignedEvent
| ClosedEvent
| Commit
| CrossReferencedEvent
Expand Down Expand Up @@ -10219,7 +10219,7 @@ type IssueTimelineItemEdge {
An item in an issue timeline
"""
union IssueTimelineItems =
AddedToProjectEvent
| AddedToProjectEvent
| AssignedEvent
| ClosedEvent
| CommentDeletedEvent
Expand Down Expand Up @@ -15572,7 +15572,7 @@ type OrgRestoreMemberAuditEntry implements AuditEntry & Node & OrganizationAudit
Types of memberships that can be restored for an Organization member.
"""
union OrgRestoreMemberAuditEntryMembership =
OrgRestoreMemberMembershipOrganizationAuditEntryData
| OrgRestoreMemberMembershipOrganizationAuditEntryData
| OrgRestoreMemberMembershipRepositoryAuditEntryData
| OrgRestoreMemberMembershipTeamAuditEntryData

Expand Down Expand Up @@ -16987,7 +16987,7 @@ type Organization implements Actor & MemberStatusable & Node & ProfileOwner & Pr
An audit entry in an organization audit log.
"""
union OrganizationAuditEntry =
MembersCanDeleteReposClearAuditEntry
| MembersCanDeleteReposClearAuditEntry
| MembersCanDeleteReposDisableAuditEntry
| MembersCanDeleteReposEnableAuditEntry
| OauthApplicationCreateAuditEntry
Expand Down Expand Up @@ -20762,7 +20762,7 @@ type PullRequestTimelineConnection {
An item in an pull request timeline
"""
union PullRequestTimelineItem =
AssignedEvent
| AssignedEvent
| BaseRefForcePushedEvent
| ClosedEvent
| Commit
Expand Down Expand Up @@ -20814,7 +20814,7 @@ type PullRequestTimelineItemEdge {
An item in a pull request timeline
"""
union PullRequestTimelineItems =
AddedToProjectEvent
| AddedToProjectEvent
| AssignedEvent
| BaseRefChangedEvent
| BaseRefForcePushedEvent
Expand Down
2 changes: 1 addition & 1 deletion project-fixtures/react-apollo-prj/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const query = gql`

const mutation = gql`
mutation UpdateMyRepository($repositoryId: ID!) {
updateRepository(input: { repositoryId: $repositoryId } ) {
updateRepository(input: { repositoryId: $repositoryId }) {
clientMutationId
}
}
Expand Down
2 changes: 1 addition & 1 deletion project-fixtures/simple-prj/addon.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = (ctx) => {
module.exports = ctx => {
return {
document: () => {
ctx.source.writeLeadingComment('Hello, Addon!');
Expand Down
2 changes: 1 addition & 1 deletion project-fixtures/simple-prj/graphql-tag.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module "graphql-tag" {
declare module 'graphql-tag' {
const gql: any;
export default gql;
}
2 changes: 1 addition & 1 deletion project-fixtures/transformation-prj/tag.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function gql(literals: TemplateStringsArray, ...args: unknown[]) {
// dummy impl
return ""
return '';
}
16 changes: 6 additions & 10 deletions project-fixtures/transformation-prj/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ module.exports = {
extensions: ['.ts', '.js'],
},
entry: {
main: path.resolve(__dirname, "query.ts"),
main: path.resolve(__dirname, 'query.ts'),
},
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].js",
path: path.resolve(__dirname, 'dist'),
filename: '[name].js',
},
module: {
rules: [
Expand All @@ -24,16 +24,12 @@ module.exports = {
options: {
transpileOnly: true,
getCustomTransformers: () => ({
before: [
tsgqlPlugin.getTransformer(),
],
before: [tsgqlPlugin.getTransformer()],
}),
},
}
},
],
},
plugins: [
tsgqlPlugin,
],
plugins: [tsgqlPlugin],
devtool: false,
};
2 changes: 1 addition & 1 deletion project-fixtures/typegen-addon-prj/graphql-tag.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module 'graphql-tag' {
function gql (...args: any[]): any;
function gql(...args: any[]): any;
export default gql;
}

0 comments on commit eb94c4f

Please sign in to comment.