2 * @fileoverview Rule to flag statements with function invocation preceded by
3 * "new" and not part of assignment
9 //------------------------------------------------------------------------------
11 //------------------------------------------------------------------------------
18 description: "disallow `new` operators outside of assignments or comparisons",
19 category: "Best Practices",
21 url: "https://eslint.org/docs/rules/no-new"
30 "ExpressionStatement > NewExpression"(node) {
31 context.report({ node: node.parent, message: "Do not use 'new' for side effects." });