Eslint handles unknown functions, how to add them to the configuration

the function of Wechat interface was called in the development, but the eslint warning error was found on the Internet, but it was not eliminated successfully.

"WeixinJSBridge" is not defined
clipboard.png
Jul.11,2021

in the configuration file:

{
  globals: {
    WeixinJSBridge: false,
  },
}

or at the top of the file that reported the error:

/* global WeixinJSBridge:false */
Menu