mirror of
https://github.com/thangisme/notes.git
synced 2025-09-24 12:14:09 -04:00
Initial commit
This commit is contained in:
16
node_modules/stylelint/lib/utils/nextNonCommentNode.js
generated
vendored
Normal file
16
node_modules/stylelint/lib/utils/nextNonCommentNode.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/* @flow */
|
||||
"use strict"
|
||||
|
||||
/**
|
||||
* Get the next non-comment node in a PostCSS AST
|
||||
* at or after a given node.
|
||||
*/
|
||||
module.exports = function nextNonCommentNode(startNode/*: Object*/)/*: ?Object*/ {
|
||||
if (!startNode || !startNode.next) return null
|
||||
|
||||
if (startNode.type === "comment") {
|
||||
return nextNonCommentNode(startNode.next())
|
||||
}
|
||||
|
||||
return startNode
|
||||
}
|
Reference in New Issue
Block a user