code: function reportIfConstant(node) {
              if (node.test && isConstant(node.test, true)) {
                  context.report({ node: node.test, messageId: "unexpected" });
              }
          }
docs: Reports when the given node contains a constant condition.
  @param {ASTNode} node The AST node to check.
  @returns {void}
  @private