How are @suppress multiple warnings using the Closure Compiler?

You can suppress warnings based on each file using the Google Closure Compiler using the @suppress annotation . However, it seems impossible to suppress multiple warnings at the same time - for example, globalThis and checkVars . I tried both

 /** * @fileoverview * @suppress {globalThis checkVars} */ 

and

 /** * @fileoverview * @suppress {globalThis,checkVars} */ 

but both of them ignore the @suppress annotation. A few @suppress lines also do not work.

+6
source share
1 answer

Separate types with pipe (for example: '|').

 /** * @fileoverview * @suppress {globalThis|checkVars} */ 
+13
source

Source: https://habr.com/ru/post/889371/


All Articles