From 392ca5dd8807d16ea52225accbdabd0084250ddf Mon Sep 17 00:00:00 2001 From: huangcheng <1530844743@qq.com> Date: Tue, 10 May 2022 10:43:35 +0800 Subject: [PATCH] chore: fix eslint error (#5876) --- packages/runtime-core/src/devtools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/devtools.ts b/packages/runtime-core/src/devtools.ts index 6bbd3db6..36c5763d 100644 --- a/packages/runtime-core/src/devtools.ts +++ b/packages/runtime-core/src/devtools.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-restricted-globals */ import { App } from './apiCreateApp' import { Fragment, Text, Comment, Static } from './vnode' import { ComponentInternalInstance } from './component' @@ -53,7 +54,6 @@ export function setDevtoolsHook(hook: DevtoolsHook, target: any) { // handle late devtools injection - only do this if we are in an actual // browser environment to avoid the timer handle stalling test runner exit // (#4815) - // eslint-disable-next-line no-restricted-globals typeof window !== 'undefined' && // some envs mock window but not fully window.HTMLElement &&