Run prettier on 0.17.0

This commit is contained in:
Christopher Chedeau committed 2017-02-15 19:56:11 -08:00
1 parent d8c242891b
commit b93a207bb2
7 files changed
+169 -141

No files matched your search

+4 -2
View File
@@ -129,7 +129,7 @@ const options = {
parser: getParserOption(),
singleQuote: argv["single-quote"],
trailingComma: argv["trailing-comma"],
jsxBracketSameLine: argv["jsx-bracket-same-line"],
jsxBracketSameLine: argv["jsx-bracket-same-line"]
};
function format(input) {
@@ -142,7 +142,9 @@ function format(input) {
const pp = prettier.format(input, options);
const pppp = prettier.format(pp, options);
if (pp !== pppp) {
const diff = require('diff').createTwoFilesPatch('', '', pp, pppp, '', '', {context: 2});
const diff = require(
"diff"
).createTwoFilesPatch("", "", pp, pppp, "", "", { context: 2 });
console.error(diff);
}
return;