17 lines
335 B
JavaScript
17 lines
335 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const isSharedLineComment = require('./isSharedLineComment');
|
||
|
|
||
|
/**
|
||
|
* @param {import('postcss').Node} node
|
||
|
*/
|
||
|
module.exports = function isAfterComment(node) {
|
||
|
const previousNode = node.prev();
|
||
|
|
||
|
if (!previousNode || previousNode.type !== 'comment') {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
return !isSharedLineComment(previousNode);
|
||
|
};
|