diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 7e9aa5237..7adedeab7 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,5 +1,4 @@ --- - name: Bug report about: Create a report to help us improve title: '' diff --git a/project-fixtures/gql-errors-prj/graphql-tag.d.ts b/project-fixtures/gql-errors-prj/graphql-tag.d.ts index 9725dde88..02ca46cde 100644 --- a/project-fixtures/gql-errors-prj/graphql-tag.d.ts +++ b/project-fixtures/gql-errors-prj/graphql-tag.d.ts @@ -1,4 +1,4 @@ -declare module "graphql-tag" { +declare module 'graphql-tag' { const gql: any; export default gql; } diff --git a/project-fixtures/gql-errors-prj/main.ts b/project-fixtures/gql-errors-prj/main.ts index a4be8414e..0b620bf8e 100644 --- a/project-fixtures/gql-errors-prj/main.ts +++ b/project-fixtures/gql-errors-prj/main.ts @@ -12,9 +12,9 @@ const tooComplexExpressionQuery = gql` query { ${getField()} } -` +`; const semanticErrorFragment = gql` - fragment MyFragment on Query { + fragment MyFragment on Query { hoge } `; diff --git a/project-fixtures/no-config-prj/graphql-tag.d.ts b/project-fixtures/no-config-prj/graphql-tag.d.ts index 9725dde88..02ca46cde 100644 --- a/project-fixtures/no-config-prj/graphql-tag.d.ts +++ b/project-fixtures/no-config-prj/graphql-tag.d.ts @@ -1,4 +1,4 @@ -declare module "graphql-tag" { +declare module 'graphql-tag' { const gql: any; export default gql; } diff --git a/project-fixtures/react-apollo-prj/schema.graphql b/project-fixtures/react-apollo-prj/schema.graphql index ee8d8737b..8532e5b02 100644 --- a/project-fixtures/react-apollo-prj/schema.graphql +++ b/project-fixtures/react-apollo-prj/schema.graphql @@ -10180,7 +10180,7 @@ type IssueTimelineConnection { An item in an issue timeline """ union IssueTimelineItem = - AssignedEvent + | AssignedEvent | ClosedEvent | Commit | CrossReferencedEvent @@ -10219,7 +10219,7 @@ type IssueTimelineItemEdge { An item in an issue timeline """ union IssueTimelineItems = - AddedToProjectEvent + | AddedToProjectEvent | AssignedEvent | ClosedEvent | CommentDeletedEvent @@ -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 @@ -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 @@ -20762,7 +20762,7 @@ type PullRequestTimelineConnection { An item in an pull request timeline """ union PullRequestTimelineItem = - AssignedEvent + | AssignedEvent | BaseRefForcePushedEvent | ClosedEvent | Commit @@ -20814,7 +20814,7 @@ type PullRequestTimelineItemEdge { An item in a pull request timeline """ union PullRequestTimelineItems = - AddedToProjectEvent + | AddedToProjectEvent | AssignedEvent | BaseRefChangedEvent | BaseRefForcePushedEvent diff --git a/project-fixtures/react-apollo-prj/src/index.tsx b/project-fixtures/react-apollo-prj/src/index.tsx index 9a2879b08..4a0fc2ae4 100644 --- a/project-fixtures/react-apollo-prj/src/index.tsx +++ b/project-fixtures/react-apollo-prj/src/index.tsx @@ -24,7 +24,7 @@ const query = gql` const mutation = gql` mutation UpdateMyRepository($repositoryId: ID!) { - updateRepository(input: { repositoryId: $repositoryId } ) { + updateRepository(input: { repositoryId: $repositoryId }) { clientMutationId } } diff --git a/project-fixtures/simple-prj/addon.js b/project-fixtures/simple-prj/addon.js index 12aecf0be..0b678a161 100644 --- a/project-fixtures/simple-prj/addon.js +++ b/project-fixtures/simple-prj/addon.js @@ -1,4 +1,4 @@ -module.exports = (ctx) => { +module.exports = ctx => { return { document: () => { ctx.source.writeLeadingComment('Hello, Addon!'); diff --git a/project-fixtures/simple-prj/graphql-tag.d.ts b/project-fixtures/simple-prj/graphql-tag.d.ts index 9725dde88..02ca46cde 100644 --- a/project-fixtures/simple-prj/graphql-tag.d.ts +++ b/project-fixtures/simple-prj/graphql-tag.d.ts @@ -1,4 +1,4 @@ -declare module "graphql-tag" { +declare module 'graphql-tag' { const gql: any; export default gql; } diff --git a/project-fixtures/transformation-prj/tag.ts b/project-fixtures/transformation-prj/tag.ts index 8406ab2b7..8317cd610 100644 --- a/project-fixtures/transformation-prj/tag.ts +++ b/project-fixtures/transformation-prj/tag.ts @@ -1,4 +1,4 @@ export default function gql(literals: TemplateStringsArray, ...args: unknown[]) { // dummy impl - return "" + return ''; } diff --git a/project-fixtures/transformation-prj/webpack.config.js b/project-fixtures/transformation-prj/webpack.config.js index 311e8ea3c..454bdefe5 100644 --- a/project-fixtures/transformation-prj/webpack.config.js +++ b/project-fixtures/transformation-prj/webpack.config.js @@ -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: [ @@ -24,16 +24,12 @@ module.exports = { options: { transpileOnly: true, getCustomTransformers: () => ({ - before: [ - tsgqlPlugin.getTransformer(), - ], + before: [tsgqlPlugin.getTransformer()], }), }, - } + }, ], }, - plugins: [ - tsgqlPlugin, - ], + plugins: [tsgqlPlugin], devtool: false, }; diff --git a/project-fixtures/typegen-addon-prj/graphql-tag.d.ts b/project-fixtures/typegen-addon-prj/graphql-tag.d.ts index 806b65c49..9055ef089 100644 --- a/project-fixtures/typegen-addon-prj/graphql-tag.d.ts +++ b/project-fixtures/typegen-addon-prj/graphql-tag.d.ts @@ -1,4 +1,4 @@ declare module 'graphql-tag' { - function gql (...args: any[]): any; + function gql(...args: any[]): any; export default gql; }