Skip to content

Commit

Permalink
Merge pull request #1228 from Quramy/modify_prettier_config
Browse files Browse the repository at this point in the history
modify prettier config
  • Loading branch information
Quramy committed Mar 15, 2024
2 parents 54fa9be + eb94c4f commit 50ffb92
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 28 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE.md
@@ -1,5 +1,4 @@
---

name: Bug report
about: Create a report to help us improve
title: ''
Expand Down
6 changes: 5 additions & 1 deletion .prettierignore
@@ -1,7 +1,11 @@
dist/
lib/
project-fixtures/
__snapshots__/
**/testing/resources/*.graphql
coverage/
e2e_coverage/
.husky/
project-fixtures/**/*.invalid.json
project-fixtures/**/__generated__/
project-fixtures/**/manifest.json
project-fixtures/**/GRAPHQL_OPERATIONS.md
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
"e2e": "node e2e/run.js",
"e2e:ci": "c8 -o e2e_coverage -x e2e -r json -i \"src/**/*\" node e2e/run.js",
"test": "npm run format:check && npm run lint && npm run jest:ci && npm run e2e:ci",
"prettier": "prettier \"*.js\" \"*.md\" \"*.json\" \"*.yml\" \"src/**/*\" \"e2e/**/*\" \"docs/**/*\"",
"prettier": "prettier .",
"format": "npm run prettier -- --write",
"format:check": "npm run prettier -- --check",
"doc:toc": "ts-node -P tools/tsconfig.json tools/add-toc.ts",
Expand Down
2 changes: 1 addition & 1 deletion 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;
}
4 changes: 2 additions & 2 deletions project-fixtures/gql-errors-prj/main.ts
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
@@ -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
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
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
@@ -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
@@ -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
@@ -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
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
@@ -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 50ffb92

Please sign in to comment.