src/nodes/hashes.js in prettier-0.12.2 vs src/nodes/hashes.js in prettier-0.12.3
- old
+ new
@@ -4,12 +4,12 @@
ifBreak,
indent,
join,
line,
literalline
-} = require("../builders");
-const { skipAssignIndent } = require("../utils");
+} = require("../prettier");
+const { prefix, skipAssignIndent } = require("../utils");
const nodeDive = (node, steps) => {
let current = node;
steps.forEach(step => {
@@ -65,9 +65,10 @@
parts.push(indent(concat([line, valueDoc])));
}
return group(concat(parts));
},
+ assoc_splat: prefix("**"),
assoclist_from_args: (path, opts, print) => {
const { addTrailingCommas } = opts;
const assocNodes = path.getValue().body[0];
const assocDocs = [];