Skip to content

Commit cdcb792

Browse files
author
Vinay Jadav
committed
fix: lint issues in queries and endofline errors
1 parent 548593a commit cdcb792

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"arrowParens": "always",
3-
"trailingComma": "all"
3+
"trailingComma": "all",
4+
"endOfLine": "auto"
45
}

internal/gatsby/queries/categories-query.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const categoriesQuery = async (graphql: CreatePagesArgs["graphql"]) => {
1616
filter: {
1717
frontmatter: { template: { eq: "post" }, draft: { ne: true } }
1818
}
19-
sort: {frontmatter: {date: DESC}}
19+
sort: { frontmatter: { date: DESC } }
2020
) {
21-
group(field: {frontmatter: {category: SELECT}}) {
21+
group(field: { frontmatter: { category: SELECT } }) {
2222
fieldValue
2323
totalCount
2424
}

internal/gatsby/queries/tags-query.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const tagsQuery = async (graphql: CreatePagesArgs["graphql"]) => {
1717
frontmatter: { template: { eq: "post" }, draft: { ne: true } }
1818
}
1919
) {
20-
group(field: {frontmatter: {tags: SELECT}}) {
20+
group(field: { frontmatter: { tags: SELECT } }) {
2121
fieldValue
2222
totalCount
2323
}

src/hooks/use-categories-list.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const useCategoriesList = () => {
1717
frontmatter: { template: { eq: "post" }, draft: { ne: true } }
1818
}
1919
) {
20-
group(field: {frontmatter: {category: SELECT}}) {
20+
group(field: { frontmatter: { category: SELECT } }) {
2121
fieldValue
2222
totalCount
2323
}

src/hooks/use-tags-list.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const useTagsList = () => {
1717
frontmatter: { template: { eq: "post" }, draft: { ne: true } }
1818
}
1919
) {
20-
group(field: {frontmatter: {tags: SELECT}}) {
20+
group(field: { frontmatter: { tags: SELECT } }) {
2121
fieldValue
2222
totalCount
2323
}

src/templates/CategoryTemplate/CategoryTemplate.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const query = graphql`
5252
draft: { ne: true }
5353
}
5454
}
55-
sort: {frontmatter: {date: DESC}}
55+
sort: { frontmatter: { date: DESC } }
5656
) {
5757
edges {
5858
node {

src/templates/IndexTemplate/IndexTemplate.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const query = graphql`
4545
allMarkdownRemark(
4646
limit: $limit
4747
skip: $offset
48-
sort: {frontmatter: {date: DESC}}
48+
sort: { frontmatter: { date: DESC } }
4949
filter: { frontmatter: { template: { eq: "post" }, draft: { ne: true } } }
5050
) {
5151
edges {

src/templates/TagTemplate/TagTemplate.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const query = graphql`
5757
draft: { ne: true }
5858
}
5959
}
60-
sort: {frontmatter: {date: DESC}}
60+
sort: { frontmatter: { date: DESC } }
6161
) {
6262
edges {
6363
node {

0 commit comments

Comments
 (0)