Merge pull request #106 from demoneaux/fix-directives-newlines
Fix misprinting of directives.master
commit
c2458e7dc9
|
@ -524,7 +524,7 @@ function genericPrintNoParens(path, options, print) {
|
||||||
parts.push(
|
parts.push(
|
||||||
indent(
|
indent(
|
||||||
options.tabWidth,
|
options.tabWidth,
|
||||||
concat([ line, print(childPath), ";", line ])
|
concat([ hardline, print(childPath), ";", hardline ])
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,3 +1,17 @@
|
||||||
|
exports[`test directives.js 1`] = `
|
||||||
|
"\"use strict\";
|
||||||
|
|
||||||
|
function fn() {
|
||||||
|
\"use strict\";
|
||||||
|
}
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
\"use strict\";
|
||||||
|
|
||||||
|
function fn() {
|
||||||
|
\"use strict\";
|
||||||
|
}"
|
||||||
|
`;
|
||||||
|
|
||||||
exports[`test optional-type-name.js 1`] = `
|
exports[`test optional-type-name.js 1`] = `
|
||||||
"type Foo = (any) => string
|
"type Foo = (any) => string
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
function fn() {
|
||||||
|
"use strict";
|
||||||
|
}
|
Loading…
Reference in New Issue