2 * @fileoverview Rule to disallow use of void operator.
7 //------------------------------------------------------------------------------
9 //------------------------------------------------------------------------------
16 description: "disallow `void` operators",
17 category: "Best Practices",
19 url: "https://eslint.org/docs/rules/no-void"
27 //--------------------------------------------------------------------------
29 //--------------------------------------------------------------------------
32 UnaryExpression(node) {
33 if (node.operator === "void") {
34 context.report({ node, message: "Expected 'undefined' and instead saw 'void'." });