From 93b58d209e2bd85993d208b9c66f2809939406f2 Mon Sep 17 00:00:00 2001 From: Farnabaz Date: Mon, 7 Jun 2021 12:01:38 +0430 Subject: [PATCH] chore: fix lint --- src/admin/index.ts | 2 +- src/core/parser/markdown/directive/remark-plugin.ts | 1 - src/core/runtime/composables/addons.ts | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/index.ts b/src/admin/index.ts index 00c6aa501..2156e975c 100644 --- a/src/admin/index.ts +++ b/src/admin/index.ts @@ -1,5 +1,5 @@ import { execSync } from 'child_process' -import { join, resolve } from 'upath' +import { join } from 'upath' import chalk from 'chalk' import { NuxtOptionsServer } from '@nuxt/types/config/server' import serveStatic from 'serve-static' diff --git a/src/core/parser/markdown/directive/remark-plugin.ts b/src/core/parser/markdown/directive/remark-plugin.ts index f6a9ea1c7..b77dc6243 100644 --- a/src/core/parser/markdown/directive/remark-plugin.ts +++ b/src/core/parser/markdown/directive/remark-plugin.ts @@ -1,5 +1,4 @@ import visit from 'unist-util-visit' -import h from 'hastscript' import { useMarkdownParser } from '..' const toFrontMatter = (yamlString: string) => `--- diff --git a/src/core/runtime/composables/addons.ts b/src/core/runtime/composables/addons.ts index 9e9dd1937..836e8160b 100644 --- a/src/core/runtime/composables/addons.ts +++ b/src/core/runtime/composables/addons.ts @@ -33,6 +33,7 @@ export const useDocusAddons = (context: DocusAddonContext, addons: DocusAddons) try { await addonKeys?.init?.() } catch (e) { + // eslint-disable-next-line no-console console.log(`Could not init ${key} addon!`) } }