chore(dev): Fix linter warnings in sites/dev
This commit is contained in:
parent
1c95f8ed34
commit
00179cfeea
2 changed files with 3 additions and 9 deletions
|
@ -1,12 +1,7 @@
|
|||
import { useContext, useEffect } from 'react'
|
||||
import { NavigationContext } from 'shared/context/navigation-context.mjs'
|
||||
import { useEffect } from 'react'
|
||||
import get from 'lodash.get'
|
||||
import { prebuildNavigation as pbn } from 'site/prebuild/navigation.mjs'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
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.
|
||||
|
@ -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
|
||||
*/
|
||||
|
||||
const ns = ['account', 'sections', 'design', 'tags']
|
||||
export const ns = ['account', 'sections', 'design', 'tags']
|
||||
|
||||
const sitePages = () => {
|
||||
const pages = {
|
||||
|
|
|
@ -14,7 +14,6 @@ import fs from 'fs'
|
|||
import path from 'path'
|
||||
import algoliasearch from 'algoliasearch'
|
||||
import { unified } from 'unified'
|
||||
import { remark } from 'remark'
|
||||
import { visit } from 'unist-util-visit'
|
||||
import remarkParser from 'remark-parse'
|
||||
import remarkCompiler from 'remark-stringify'
|
||||
|
@ -98,7 +97,7 @@ const indexMarkdownContent = async () => {
|
|||
const run = async () => {
|
||||
if (process.env.VERCEL_ENV === 'production' || process.env.FORCE_ALGOLIA) {
|
||||
console.log()
|
||||
//await clearIndex()
|
||||
await clearIndex()
|
||||
await indexMarkdownContent()
|
||||
console.log()
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue