]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix eslint error (#5876)
authorhuangcheng <1530844743@qq.com>
Tue, 10 May 2022 02:43:35 +0000 (10:43 +0800)
committerGitHub <noreply@github.com>
Tue, 10 May 2022 02:43:35 +0000 (22:43 -0400)
packages/runtime-core/src/devtools.ts

index 6bbd3db6e753d6b251385baec100c344fbccbe77..36c5763dcf14966d2db5ed9c8a0dbfaa3b2163af 100644 (file)
@@ -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 &&