code: function checkLiteral(node) {
              const token = sourceCode.getFirstToken(node),
                  nodeType = token.type,
                  nodeValue = token.value;
  
              if (nodeType === "RegularExpression") {
                  checkRegex(node, nodeValue, token.range[0]);
              }
          }
docs: Validate regular expression literals
  @param {ASTNode} node node to validate
  @returns {void}
  @private