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

Lint pug templates in Vue components #24

Merged
merged 2 commits into from
Sep 28, 2018
Merged

Lint pug templates in Vue components #24

merged 2 commits into from
Sep 28, 2018

Conversation

zachmullen
Copy link
Member

Unfortunately, the vue-cli-service tooling provides no support for linting pug templates, and has no plans to at the moment, though open issues exist, and I imagine it will be added at some point in the future.

I think we should add some third party tooling to support this for the moment. Yes, this adds an annoying amount of dev dependencies and departs slightly from the world of pure first-class vue-supported tools, however I think it's important enough as we gain momentum writing components to justify this.

It's clear that code review time is one of our most limited resources, and we know that using humans as linters in code review is an anti-pattern / bad practice. So with that in mind, I think we should merge this, and open an issue to remove most of this code in the future once pug support gets added to vue tooling.

The package update made our linter start catching stuff in
the eslintrc file.
@zachmullen
Copy link
Member Author

Sorry for the massive yarn.lock changes, there was a conflict in it, and my answer to yarn.lock conflicts is rm yarn.lock ; yarn.

@zachmullen zachmullen merged commit 49917ee into master Sep 28, 2018
@zachmullen zachmullen deleted the pug-lint branch September 28, 2018 13:11
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