Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Aug 27, 2019
1 parent 9a8f511 commit 2b1ad75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function help () {
process.exit(1)
}

async function main() {
async function main () {
const flags = mri(process.argv.slice(2), {
string: ['parser', 'branch', 'pattern'],
default: {
Expand Down Expand Up @@ -108,7 +108,10 @@ async function main() {
}
}

main().then(function () {}, function (e) {
console.error(e.message)
process.exit(2)
})
main().then(
function () {},
function (e) {
console.error(e.message)
process.exit(2)
}
)
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ function run (cwd, config) {
const file = path.join(cwd, relative)
const input = fs.readFileSync(file, 'utf8')

const fileOptions = Object.assign({},
const fileOptions = Object.assign(
{},
prettierx.resolveConfig.sync(file, {
editorconfig: true
}),
Expand Down

0 comments on commit 2b1ad75

Please sign in to comment.