Skip to content

Commit

Permalink
fix: Add proper parser loading for vue
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher authored and zimme committed Jun 15, 2019
1 parent b73fef1 commit 668282f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Expand Up @@ -126,7 +126,8 @@ function format(options) {
}

if ([".vue"].includes(fileExtension)) {
formattingOptions.eslint.parser = require.resolve("vue-eslint-parser");
formattingOptions.eslint.parser =
formattingOptions.eslint.parser || require.resolve("vue-eslint-parser");
}

const eslintFix = createEslintFix(formattingOptions.eslint, eslintPath);
Expand Down

0 comments on commit 668282f

Please sign in to comment.