1
0
mirror of https://github.com/thangisme/notes.git synced 2025-09-24 07:14:22 -04:00

Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions

43
node_modules/stylelint/lib/utils/beforeBlockString.js generated vendored Normal file
View File

@@ -0,0 +1,43 @@
/* @flow */
"use strict"
module.exports = function (
statement/*: Object*/,
options/*:: ?: Object*/
)/*: string*/ {
options = options || {}
let result = ""
let rule/*: postcss$rule*/
let atRule/*: postcss$atRule*/
if (statement.type === "rule") {
rule = statement
}
if (statement.type === "atrule") {
atRule = statement
}
if (!rule && !atRule) {
return result
}
const before = (statement.raws.before || "")
if (!options.noRawBefore) {
result += before
}
if (rule) {
result += rule.selector
}
if (atRule) {
result += "@" + atRule.name + (atRule.raws.afterName || "") + atRule.params
}
const between = statement.raws.between
if (between !== undefined) {
result += between
}
return result
}