Sha256: ea5ec05b905b7a68a099c9addf461cbb42792066e1af3a1c2588e458592b9075
Contents?: true
Size: 585 Bytes
Versions: 24
Compression:
Stored size: 585 Bytes
Contents
'use strict'; const _ = require('lodash'); const getPreviousNonSharedLineCommentNode = require('./getPreviousNonSharedLineCommentNode'); const isCustomProperty = require('./isCustomProperty'); const isStandardSyntaxDeclaration = require('./isStandardSyntaxDeclaration'); /** * @param {import('postcss').Node} node */ module.exports = function (node) { const prevNode = getPreviousNonSharedLineCommentNode(node); return ( prevNode !== undefined && prevNode.type === 'decl' && isStandardSyntaxDeclaration(prevNode) && !isCustomProperty(_.get(prevNode, 'prop', '')) ); };
Version data entries
24 entries across 24 versions & 1 rubygems