UNPKG

stylelint

Version:

A mighty CSS linter that helps you avoid errors and enforce conventions.

17 lines (13 loc) 360 B
import { isComment } from './typeGuards.mjs'; import isSharedLineComment from './isSharedLineComment.mjs'; /** * @param {import('postcss').Node} node * @returns {boolean} */ export default function isAfterComment(node) { const previousNode = node.prev(); if (!isComment(previousNode)) { return false; } return !isSharedLineComment(previousNode); }