Skip to content

Commit

Permalink
fix: Fix file path checking in options
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermelimak committed Dec 12, 2017
1 parent d66cafa commit e2a6a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class PrettierVue {
prettier.resolveConfig(this.configPath).then(options => {
this.prettierOpts = options

if (opts._ && opts._.length) {
if (opts._ && !!opts._.length) {
const path = `${this.baseDir}/${opts._[0]}`

if (!isVueSFC(path)) {
Expand Down

0 comments on commit e2a6a81

Please sign in to comment.