Bump Prettier dependency to 1.15.0
This commit is contained in:
1 parent
fa40f2ddd3
commit
514b6d3741
24 files changed
+345
-362
No files matched your search
@@ -164,18 +164,18 @@ function genericPrint(path, options, print) {
|
||||
node.raws.important
|
||||
? node.raws.important.replace(/\s*!\s*important/i, " !important")
|
||||
: node.important
|
||||
? " !important"
|
||||
: "",
|
||||
? " !important"
|
||||
: "",
|
||||
node.raws.scssDefault
|
||||
? node.raws.scssDefault.replace(/\s*!default/i, " !default")
|
||||
: node.scssDefault
|
||||
? " !default"
|
||||
: "",
|
||||
? " !default"
|
||||
: "",
|
||||
node.raws.scssGlobal
|
||||
? node.raws.scssGlobal.replace(/\s*!global/i, " !global")
|
||||
: node.scssGlobal
|
||||
? " !global"
|
||||
: "",
|
||||
? " !global"
|
||||
: "",
|
||||
node.nodes
|
||||
? concat([
|
||||
" {",
|
||||
@@ -188,8 +188,8 @@ function genericPrint(path, options, print) {
|
||||
: isTemplatePropNode(node) &&
|
||||
!parentNode.raws.semicolon &&
|
||||
options.originalText[options.locEnd(node) - 1] !== ";"
|
||||
? ""
|
||||
: ";"
|
||||
? ""
|
||||
: ";"
|
||||
]);
|
||||
}
|
||||
case "css-atrule": {
|
||||
@@ -208,8 +208,8 @@ function genericPrint(path, options, print) {
|
||||
isDetachedRulesetCallNode(node)
|
||||
? ""
|
||||
: isTemplatePlaceholderNode(node)
|
||||
? node.raws.afterName
|
||||
: " ",
|
||||
? node.raws.afterName
|
||||
: " ",
|
||||
path.call(print, "params")
|
||||
])
|
||||
: "",
|
||||
@@ -229,8 +229,8 @@ function genericPrint(path, options, print) {
|
||||
])
|
||||
)
|
||||
: node.name === "else"
|
||||
? " "
|
||||
: "",
|
||||
? " "
|
||||
: "",
|
||||
node.nodes
|
||||
? concat([
|
||||
isSCSSControlDirectiveNode(node) ? "" : " ",
|
||||
@@ -247,8 +247,8 @@ function genericPrint(path, options, print) {
|
||||
: isTemplatePlaceholderNode(node) &&
|
||||
!parentNode.raws.semicolon &&
|
||||
options.originalText[options.locEnd(node) - 1] !== ";"
|
||||
? ""
|
||||
: ";"
|
||||
? ""
|
||||
: ";"
|
||||
]);
|
||||
}
|
||||
// postcss-media-query-parser
|
||||
@@ -343,7 +343,7 @@ function genericPrint(path, options, print) {
|
||||
? node.value
|
||||
: adjustNumbers(
|
||||
isHTMLTag(node.value) ||
|
||||
isKeyframeAtRuleKeywords(path, node.value)
|
||||
isKeyframeAtRuleKeywords(path, node.value)
|
||||
? node.value.toLowerCase()
|
||||
: node.value
|
||||
)
|
||||
@@ -759,8 +759,8 @@ function genericPrint(path, options, print) {
|
||||
),
|
||||
ifBreak(
|
||||
isSCSS(options.parser, options.originalText) &&
|
||||
isSCSSMapItem &&
|
||||
shouldPrintComma(options)
|
||||
isSCSSMapItem &&
|
||||
shouldPrintComma(options)
|
||||
? ","
|
||||
: ""
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user