1
0
Fork 0

chore(dev): Fix linter warnings in sites/dev

This commit is contained in:
joostdecock 2023-05-19 16:40:15 +02:00
parent 1c95f8ed34
commit 00179cfeea
2 changed files with 3 additions and 9 deletions

View file

@ -1,12 +1,7 @@
import { useContext, useEffect } from 'react' import { useEffect } from 'react'
import { NavigationContext } from 'shared/context/navigation-context.mjs'
import get from 'lodash.get' import get from 'lodash.get'
import { prebuildNavigation as pbn } from 'site/prebuild/navigation.mjs' import { prebuildNavigation as pbn } from 'site/prebuild/navigation.mjs'
import { useTranslation } from 'next-i18next'
import orderBy from 'lodash.orderby' import orderBy from 'lodash.orderby'
import { freeSewingConfig as conf } from 'shared/config/freesewing.config.mjs'
import { useAccount } from 'shared/hooks/use-account.mjs'
import { designs, tags } from 'shared/config/designs.mjs'
/* /*
* prebuildNavvigation[locale] holds the navigation structure based on MDX content. * prebuildNavvigation[locale] holds the navigation structure based on MDX content.
@ -19,7 +14,7 @@ import { designs, tags } from 'shared/config/designs.mjs'
* Note: Set 'c' to set the control level to hide things from users * Note: Set 'c' to set the control level to hide things from users
*/ */
const ns = ['account', 'sections', 'design', 'tags'] export const ns = ['account', 'sections', 'design', 'tags']
const sitePages = () => { const sitePages = () => {
const pages = { const pages = {

View file

@ -14,7 +14,6 @@ import fs from 'fs'
import path from 'path' import path from 'path'
import algoliasearch from 'algoliasearch' import algoliasearch from 'algoliasearch'
import { unified } from 'unified' import { unified } from 'unified'
import { remark } from 'remark'
import { visit } from 'unist-util-visit' import { visit } from 'unist-util-visit'
import remarkParser from 'remark-parse' import remarkParser from 'remark-parse'
import remarkCompiler from 'remark-stringify' import remarkCompiler from 'remark-stringify'
@ -98,7 +97,7 @@ const indexMarkdownContent = async () => {
const run = async () => { const run = async () => {
if (process.env.VERCEL_ENV === 'production' || process.env.FORCE_ALGOLIA) { if (process.env.VERCEL_ENV === 'production' || process.env.FORCE_ALGOLIA) {
console.log() console.log()
//await clearIndex() await clearIndex()
await indexMarkdownContent() await indexMarkdownContent()
console.log() console.log()
} else { } else {