chore(linting): change arrowParents configuration, upgrade eslint config

This commit is contained in:
Alexander Shelepenok
2022-04-24 16:21:11 +00:00
parent 729d964c9e
commit 427a6f40f3
10 changed files with 20 additions and 23 deletions

View File

@@ -39,7 +39,7 @@ const createPages: GatsbyNode["createPages"] = async ({ graphql, actions }) => {
const pages = await queries.pagesQuery(graphql);
pages.forEach(edge => {
pages.forEach((edge) => {
const { node } = edge;
if (node?.frontmatter?.template === "page" && node?.fields?.slug) {
@@ -88,7 +88,7 @@ const createPages: GatsbyNode["createPages"] = async ({ graphql, actions }) => {
const metadata = await queries.metadataQuery(graphql);
const postsLimit = metadata?.postsLimit ?? 1;
categories.forEach(category => {
categories.forEach((category) => {
const total = Math.ceil(category.totalCount / postsLimit);
const path = utils.concat(
constants.routes.categoryRoute,
@@ -110,7 +110,7 @@ const createPages: GatsbyNode["createPages"] = async ({ graphql, actions }) => {
const tags = await queries.tagsQuery(graphql);
tags.forEach(tag => {
tags.forEach((tag) => {
const path = utils.concat(
constants.routes.tagRoute,
"/",

View File

@@ -30,7 +30,7 @@ const onCreateNode: GatsbyNode["onCreateNode"] = ({
}
if (tags) {
const value = tags.map(tag =>
const value = tags.map((tag) =>
utils.concat(
constants.routes.tagRoute,
"/",