Run prettier on 0.13.0 (#497)
This commit is contained in:
1 parent
d548ef0790
commit
c34013b1ee
12 files changed
+317
-318
No files matched your search
@@ -1,4 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
const codeFrame = require("babel-code-frame");
|
||||
const comments = require("./src/comments");
|
||||
const version = require("./package.json").version;
|
||||
@@ -63,7 +64,7 @@ function formatWithShebang(text, opts) {
|
||||
const shebang = text.slice(0, index + 1);
|
||||
const programText = text.slice(index + 1);
|
||||
const nextChar = text.charAt(index + 1);
|
||||
const newLine = nextChar === "\n" ? "\n" : (nextChar === "\r" ? "\r\n" : "");
|
||||
const newLine = nextChar === "\n" ? "\n" : nextChar === "\r" ? "\r\n" : "";
|
||||
|
||||
return shebang + newLine + format(programText, opts);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user