Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
data
/
trash
/
vhost_www.bachtale.com_1719306535
/
htdocs
/
node_modules
/
eslint
/
lib
/
rules
/
//srv/data/trash/vhost_www.bachtale.com_1719306535/htdocs/node_modules/eslint/lib/rules/no-void.js
/** * @fileoverview Rule to disallow use of void operator. * @author Mike Sidorov */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { type: "suggestion", docs: { description: "disallow `void` operators", category: "Best Practices", recommended: false, url: "https://eslint.org/docs/rules/no-void" }, schema: [] }, create(context) { //-------------------------------------------------------------------------- // Public //-------------------------------------------------------------------------- return { UnaryExpression(node) { if (node.operator === "void") { context.report({ node, message: "Expected 'undefined' and instead saw 'void'." }); } } }; } };