code: function isDirectivePrologue(node, sourceCode) {
      if (isDirective(node, sourceCode)) {
          for (const sibling of node.parent.body) {
              if (sibling === node) {
                  break;
              }
              if (!isDirective(sibling, sourceCode)) {
                  return false;
              }
          }
          return true;
      }
      return false;
  }
docs: Check whether the given node is a part of directive prologue or not.
  @param {ASTNode} node The node to check.
  @param {SourceCode} sourceCode The source code object to get tokens.
  @returns {boolean} `true` if the node is a part of directive prologue.