Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: pass filepath to prettier #76

Merged
merged 1 commit into from
Jan 16, 2018
Merged

Fix: pass filepath to prettier #76

merged 1 commit into from
Jan 16, 2018

Conversation

azz
Copy link
Member

@azz azz commented Jan 12, 2018

Passing the filepath to Prettier allows Prettier to determine which parser to use dynamically. This has the effect of fixing the integration between eslint-plugin-vue or eslint-plugin-html and eslint-plugin-prettier, but is not specific to those plugins.

Here's a test showing the output after this fix: https://github.com/azz/eslint-vue-prettier-repro

I added a test to this repo but could not commit it as it depends on a HTML parser being loaded.

Copy link
Member

@not-an-aardvark not-an-aardvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants