some deletions
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / utils / getNextNonSharedLineCommentNode.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/utils/getNextNonSharedLineCommentNode.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/utils/getNextNonSharedLineCommentNode.js
deleted file mode 100644 (file)
index 9e984d5..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/* @flow */
-"use strict";
-
-const _ = require("lodash");
-
-function getNodeLine(node /*:: ?: postcss$node*/) /*: number | void*/ {
-  return _.get(node, "source.start.line");
-}
-
-module.exports = function getNextNonSharedLineCommentNode(
-  node /*:: ?: postcss$node*/
-) /*: postcss$node | void*/ {
-  if (node === undefined) {
-    return undefined;
-  }
-
-  const nextNode = node.next();
-
-  if (_.get(nextNode, "type") !== "comment") {
-    return nextNode;
-  }
-
-  if (
-    getNodeLine(node) === getNodeLine(nextNode) ||
-    (nextNode !== undefined &&
-      getNodeLine(nextNode) === getNodeLine(nextNode.next()))
-  ) {
-    return getNextNonSharedLineCommentNode(nextNode);
-  }
-
-  return nextNode;
-};